/*
  HOW TO CALCULATE CLAMP PARAMETERS (OFFSET & SLOPE) FOR FLUID FONT-SIZE:

  1. Determine your minimum and maximum font sizes and the corresponding viewport widths:
     - F_min = desired minimum font size (in px)
     - F_max = desired maximum font size (in px)
     - W_min = viewport width (in px) at which F_min applies
     - W_max = viewport width (in px) at which F_max applies

  2. Calculate the slope:
     slope = ((F_max - F_min) * 100) / (W_max - W_min)

     This gives you how many pixels per vw you need to scale between W_min and W_max.

  3. Calculate the offset:
     offset = F_min - (slope * (W_min/100))

     This shifts the starting point so that at W_min, the font-size is exactly F_min.

  4. Plug these values into your clamp function:
     font-size: clamp(F_min + "px", calc(offset + slope * 1vw), F_max + "px");

     At W_min, the calc(...) should roughly equal F_min, and at W_max, it should be close to F_max.

  EXAMPLE:
    Suppose:
      F_min = 20px at W_min = 993px
      F_max = 38px at W_max = 2520px

    Step-by-step:
      slope = ((38 - 20) * 100) / (2520 - 993)
            = (18 * 100) / 1527
            = 1800 / 1527 ≈ 1.178

      offset = 20 - (1.178 * (993/100))
             = 20 - (1.178 * 9.93)
             ≈ 20 - 11.7
             = 8.3px

    Final CSS:
      font-size: clamp(20px, calc(8.3px + 1.178vw), 38px);

  5. Round values if desired for cleaner code. Small rounding differences won’t significantly affect the appearance.
*/


html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #f9f9f9;
}

div#container {
    height: 100%;
    overflow: hidden;
}

div#content {
    height: 100%;
}

/*div#newsTicker {*/
/*    padding: 0px;*/
/*}*/

div.fill-height {
    margin: 0px;
    height: 100%;
}

.modal-header {
    padding: 25px;
}

.modal-body {
    padding: 25px;
    padding-bottom: 15px;
}

.modal-footer {
    padding: 25px;
    margin: 1px;
}

.main-logo {
    margin-bottom: 25px;
}

div.main-logo img {
    max-width: 275px;
    height: auto;
    width: auto;
}


.copyright-footer {
    display: table-row;
    vertical-align: bottom;
    height: 1px;
    text-align: center;
    padding: 10px;
}

.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.right-column {
    height: 100%;
    width: 100%;
    display: table;
    border-collapse: collapse;
}

.hidden {
    display: none;
    visibility: hidden;
}

.floating-form {
    padding: 40px;
    margin: 0 auto;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: scale(1.0) translateX(-50%) translateY(-50%);
    border: 2px solid #dadada;
    border-radius: 10px;
}

.password-resets {
    width: 600px;
}

.signin {
    min-width: 375px;
    width: auto;
}

@media ( min-width: 1199px) {
    .signin {
        width: 430px;
    }
}

div.signin input[type="text"] {
    padding: .75rem;
}

div.signin input[type="password"] {
    padding: .75rem;
}

div.signin button {
    padding: .8rem;
    margin-top: 2.5rem;
    cursor: pointer;
}

div.signin label {
    margin-bottom: .2rem;
}


#second-logo-container {
    text-align: right;
}

#second-logo {
    margin-top: 50px;
}


#left-column {
    /*display: table;*/
    /*padding: 20px 20px 20px 0;*/
    height: 100%;
    width: 100%;
}

.bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.img-resize {
    height: 100%;
    background-position: center bottom;
    /* Make the background image cover the area of the <div>, and clip the excess */
    background-size: cover;
}

.coming-soon {
    display: block;
    background-color: #9bb84f;
    box-shadow: 5px 5px 5px #888888;
    padding: 10px;
    color: white;
    text-align: center;
    width: 155px;
    margin-top: 30px;
}

#header-text {
    margin: 5% 5% 5% 0;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-top: 25px;
}

.header-subtitle {
    font-size: 1rem;
}


#secondary-icon {
    display: table-row;
    vertical-align: bottom;
    text-align: right;
    height: 1px;
}

.news-icon {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    height: 150px;
    width: auto;
    padding: 15px;
}

@media ( min-width: 1499px) {
    .header-title {
        font-size: 3.2rem;
    }

    .header-subtitle {
        font-size: 1.2rem;
    }

    .news-icon {
        height: 200px;
    }
}


/* copy of the progressbar stuff so we don't need to include screen.css */
#progressBar {
    margin: 0;
    background-color: #FFFFFF;
    position: fixed;
    top: 40%;
    left: 40%;
    z-index: 1000;
    border: solid 2px #999999;
    display: none;
    padding: 25px 40px 25px 25px;
    box-shadow: 0px 0px 60px 20px rgba(0, 0, 0, 0.07);
}

div.spinner-wrapper {
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    width: 37px;
    height: 37px;
}

div.spinner-wrapper div.spinner {
    width: 35px;
    height: 35px;
    -webkit-animation: loadingspin 1s linear infinite;
    -moz-animation: loadingspin 1s linear infinite;
    animation: loadingspin 1s linear infinite;
}

@-moz-keyframes loadingspin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes loadingspin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes loadingspin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#progressBar .spinner img {
    margin-left: -1px;
    margin-top: -1px;
}

#progressBar div.loading-text {
    margin-left: 25px;
    margin-top: 9px;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    vertical-align: top;
}

#progressBar span.spinner-cancel-report {
    float: right;
    margin-right: 15px;
    margin-top: 7px;
}

#browsers {
    margin-bottom: 20px;
    padding-left: 10px;
}

#browsers li {
    margin-bottom: 12px;
    text-transform: uppercase;
    background: transparent url(../../images/ui/icos-browsers.png) 0 0 no-repeat;
    padding: 0px;
    list-style: none;
}

#browsers li a {
    padding-left: 30px;
}

#browsers li#ie {
    background-position: 0 0px;
}

#browsers li#ff {
    background-position: 0 -48px;
}

#browsers li#gc {
    background-position: 0 -102px;
}

#browsers li.subText {
    background: none;
    font-size: 70%;
    margin-top: -15px;
    margin-left: 35px;
    margin-bottom: 5px;
}

.sp-color-btn {
    cursor: pointer;
}

button {
    cursor: pointer;
}

/* ===============================================================
   Otuvy QM mobile-app marketing pane (web/login/news/news.jsp).
   Rendered as the left column of the login page for domains
   1, 2, 4 (see news1/news2/news4.jsp). BI (3, 40) and Bravo (7)
   use their own news pages with their own styling.
   =============================================================== */

.otuvy-mobile-ad {
    position: relative;
    width: 100%;
    height: 100%;
    color: #FFFFFF;
    background: #0b1f18 url('../../images/login/marketing/bg-texture.png') center / cover no-repeat;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 3.5rem 2.5rem 3rem;
    gap: 3rem;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Logo, headline, and subheadline are grouped tightly so they read as one
   block; spacing between this block and the content below is handled by the
   parent .otuvy-mobile-ad's `gap`. */
.otuvy-mobile-ad__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    max-width: 56rem;
    width: 100%;
    margin: 0 auto;
}

.otuvy-mobile-ad__logo {
    height: 3.5rem;
    width: auto;
    display: block;
    margin-bottom: 0.5rem;
}

.otuvy-mobile-ad__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 56rem;
    width: 100%;
    margin: 0 auto;
}

.otuvy-mobile-ad__headline {
    font-size: 2.75rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.15;
}

.otuvy-mobile-ad__subheadline {
    font-size: 1.25rem;
    color: #FFFFFF;
    opacity: 0.95;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.otuvy-mobile-ad__phones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    width: 100%;
    margin: 0;
}

.otuvy-mobile-ad__phone {
    flex: 1 1 0;
    max-width: 13.5rem;
    height: auto;
    display: block;
}

.otuvy-mobile-ad__cta {
    font-size: 1.15rem;
    color: #FFFFFF;
    margin: 0;
    font-weight: 700;
}

.otuvy-mobile-ad__stores {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

/* Each "card" stacks vertically: QR on top, pill button below.
   Fixed width is shared by QR and button so everything lines up identically. */
.otuvy-mobile-ad__store-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 10.5rem;
}

.otuvy-mobile-ad__store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: rgba(0, 0, 0, 0.45);
    border: 0.0625rem solid rgba(255, 255, 255, 0.25);
    border-radius: 10rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 200ms ease, border-color 200ms ease;
    width: 100%;
    box-sizing: border-box;
}

.otuvy-mobile-ad__store:hover,
.otuvy-mobile-ad__store:focus {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.55);
    color: #FFFFFF;
    text-decoration: none;
}

.otuvy-mobile-ad__store-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
}

.otuvy-mobile-ad__store-label {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.1;
}

.otuvy-mobile-ad__qr {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #fff;
    border: 0.375rem solid #000;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.otuvy-mobile-ad__qr--image {
    display: block;
}

.otuvy-mobile-ad__learn-more {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    opacity: 0.9;
    transition: opacity 200ms ease;
}

.otuvy-mobile-ad__learn-more:hover,
.otuvy-mobile-ad__learn-more:focus {
    color: #FFFFFF;
    opacity: 1;
    text-decoration: underline;
}

.otuvy-mobile-ad__qr-placeholder-text {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-height: 950px) {
    html {
        font-size: 12px;
    }
}

/* Short viewports: shrink the root font-size further so every rem-based
   rule (padding, gap, phones, QRs, buttons, Learn More) scales down
   proportionally and the link stays above the fold. */
@media (max-height: 820px) {
    html {
        font-size: 10px;
    }
}

/* Below Bootstrap's lg breakpoint the marketing pane is hidden entirely and
   the login form takes the full viewport width. The parent #newsTicker
   column is already hidden via Bootstrap's .hidden-md-down class in
   loginMain.jsp; this is the redundant CSS safety net (same pattern the
   previous .ad-container had). */
@media (max-width: 991.98px) {
    .otuvy-mobile-ad {
        display: none;
    }
}

html.async-hide { opacity: 1 !important; }


