/* ============================================================
   auth-responsive.css
   Shared responsive rules for the standalone auth pages
   (Login, ForgotPassword, and any other Layout = null card view).

   Load this AFTER @Styles.Render("~/Content/css") so it wins on
   source order and you don't need !important everywhere.
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f2f2f2;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- page shell: centres the card on any viewport ---- */
.login_Page {
    min-height: 100vh;
    min-height: 100dvh; /* correct height on mobile browsers with collapsing toolbars */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(24px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}

.login_inner {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    padding: clamp(20px, 5vw, 36px);
}

/* Bootstrap rows/cols inside the card would add negative margins and gutters,
   which pushes content past the card's padding and causes sideways scroll. */
.login_inner .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.login_inner [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
}

.rb_center {
    text-align: center;
}

/* ---- headings ---- */
.login100-form-title {
    display: block;
    text-align: center;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 600;
    line-height: 1.25;
    padding-bottom: 8px;
}

.login_inner h2 {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 4px;
}

/* ---- logo: flex centring works whether the bundle makes the img
        block, inline-block or floated ---- */
.login_inner .loginlogo {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 8px 0 22px;
}

.login_inner .loginlogo img,
.login_inner .logoimglogin {
    width: auto;
    max-width: 110px;
    max-height: 90px;
    float: none;
    margin-left: auto;
    margin-right: auto;
}

/* ---- fields ---- */
.form-group {
    margin-bottom: 16px;
}

.login_inner .form-group:last-child {
    margin-bottom: 0;
}

/* 16px font-size stops iOS Safari zooming the page in on focus */
.login_inner .form-control {
    display: block;
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 11px 14px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
    color: #222;
    text-align: left;
}

.login_inner .form-control:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

/* ---- password field + eye toggle ----
   font-size/line-height 0 on the wrapper removes the stray line box created by
   whitespace and the empty .focus-input100 span, so the wrapper is exactly as
   tall as the input and the icon centres against it. */
.login_inner .password-wrap {
    position: relative;
    display: block;
    font-size: 0;
    line-height: 0;
}

.login_inner .password-wrap .form-control {
    padding-right: 46px;
}

/* stretched top-to-bottom rather than top:50% — no rounding, no drift */
.login_inner .password-wrap .eye-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 6px;
    height: auto;
    width: 34px;
    margin: 0;
    padding: 0;
    float: none;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* hide every icon, then reveal exactly one. Both selectors carry the same
   'svg.class' weight so neither can accidentally override the other. */
.login_inner .password-wrap .eye-icon svg {
    display: none;
    width: 18px;
    height: 18px;
    fill: currentColor;
    pointer-events: none;
}

.login_inner .password-wrap .eye-icon svg.icon-eye {
    display: block;
}

.login_inner .password-wrap .eye-icon.is-visible svg.icon-eye {
    display: none;
}

.login_inner .password-wrap .eye-icon.is-visible svg.icon-eye-off {
    display: block;
}

/* ---- buttons ---- */
.login_inner .GPformButtonSubmit {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

.login_inner .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0;
    font-size: 14px;
    background: none;
    border: 0;
    cursor: pointer;
}

.login_inner .btn-link:focus-visible,
.login_inner .form-control:focus-visible,
.login_inner .GPformButtonSubmit:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* ---- forgot-password / resend row (Login) ---- */
.login_links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 0;
    width: 100%;
}

.login_links .form-group {
    margin-bottom: 0;
}

/* ---- stacked link column (ForgotPassword) ---- */
.auth_actions {
    margin-top: 22px;
}

.auth_actions .form-group {
    margin-bottom: 4px;
}

/* ---- small phones ---- */
@media (max-width: 400px) {
    .login_inner {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .login_links {
        justify-content: center;
        text-align: center;
        gap: 4px 12px;
    }

    .login_inner .btn-link {
        font-size: 13px;
    }
}

/* ---- phones in landscape / short viewports: scroll from the top
        instead of trapping the card mid-screen ---- */
@media (orientation: landscape) and (max-height: 560px) {
    .login_Page {
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .login_inner .loginlogo {
        margin: 4px 0 14px;
    }

    .login_inner .loginlogo img,
    .login_inner .logoimglogin {
        max-width: 76px;
        max-height: 60px;
    }
}

/* ---- tablets and up ---- */
@media (min-width: 768px) {
    .login_inner {
        max-width: 440px;
    }
}
