/* SMARTCO_LOGIN_POLISH_2026_06_21_R2
   Scoped final polish for the login page only.
   R2 removes visible background gradients.
   No API, DB, route, validation or auth logic changes.
*/

@media (min-width: 901px) and (min-height: 700px) {
    html:has(.smartco-login-polish),
    body:has(.smartco-login-polish) {
        overflow: hidden;
    }

    .auth-layout-main:has(.smartco-login-polish) {
        box-sizing: border-box;
        min-height: 100vh;
        padding-block: clamp(0.75rem, 2vh, 1.35rem);
        padding-inline: clamp(1rem, 2.5vw, 2rem);
    }
}


/* Solid login background: no page/background gradients. */
html:has(.smartco-login-polish),
body:has(.smartco-login-polish),
.auth-layout-main:has(.smartco-login-polish) {
    background: #f5f8fb !important;
    background-image: none !important;
}

.smartco-login-polish,
.smartco-login-polish .auth-card {
    background-image: none !important;
}

.smartco-login-polish .auth-brand-panel {
    background: #155f86 !important;
    background-image: none !important;
}

.smartco-login-polish {
    width: min(1060px, 100%);
}

.smartco-login-polish .auth-card {
    grid-template-columns: minmax(430px, 1fr) minmax(385px, 0.92fr);
    min-height: min(640px, calc(100vh - 2.4rem));
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.13);
}

.smartco-login-polish .auth-brand-panel {
    gap: 1.35rem;
    padding: clamp(2.1rem, 4.2vw, 3.4rem);
}

.smartco-login-polish .auth-brand-mark {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1.15rem;
    font-size: 1.48rem;
}

.smartco-login-polish .auth-brand-copy {
    gap: 0.8rem;
}

.smartco-login-polish .auth-brand-copy h1 {
    font-size: clamp(2.25rem, 3.45vw, 3.25rem);
    line-height: 1.18;
}

.smartco-login-polish .auth-brand-copy p {
    font-size: 0.98rem;
    line-height: 1.85;
}

.smartco-login-polish .auth-brand-points {
    gap: 0.58rem;
}

.smartco-login-polish .auth-brand-points span {
    padding: 0.46rem 0.72rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

.smartco-login-polish .auth-form-panel {
    gap: 1rem;
    padding: clamp(2.1rem, 3.6vw, 3rem);
}

.smartco-login-polish .auth-form-heading {
    gap: 0.36rem;
}

.smartco-login-polish .auth-form-heading > span {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.22rem 0.58rem;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-size: 0.78rem;
}

.smartco-login-polish .auth-form-heading h2 {
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

.smartco-login-polish .auth-form-heading p {
    color: #64748b;
    line-height: 1.65;
}

.smartco-login-polish .auth-form {
    gap: 0.95rem;
}

.smartco-login-polish .auth-field {
    gap: 0.42rem;
}

.smartco-login-polish .auth-field input {
    min-height: 3.15rem !important;
    border: 1px solid rgba(100, 116, 139, 0.28) !important;
    border-radius: 0.95rem !important;
    padding-block: 0.82rem !important;
    padding-inline: 1rem !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.smartco-login-polish .auth-field input:hover {
    border-color: rgba(15, 118, 110, 0.42) !important;
}

.smartco-login-polish .auth-field input:focus {
    border-color: #0f766e !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13), 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

.smartco-login-polish .auth-field input:-webkit-autofill,
.smartco-login-polish .auth-field input:-webkit-autofill:hover,
.smartco-login-polish .auth-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #eef6ff inset, 0 0 0 4px rgba(15, 118, 110, 0.10) !important;
    -webkit-text-fill-color: #0f172a !important;
    border-color: rgba(15, 118, 110, 0.36) !important;
}

.smartco-login-polish .auth-secondary-actions {
    margin-top: -0.15rem;
}

.smartco-login-polish .auth-inline-link {
    color: #0f766e;
}

.smartco-login-polish .auth-submit {
    min-height: 3.2rem !important;
    border-radius: 0.95rem !important;
    margin-top: 0.1rem;
    background: #0f766e;
    box-shadow: 0 14px 26px rgba(15, 118, 110, 0.23);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.smartco-login-polish .auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.28);
}

.smartco-login-polish .auth-security-note {
    max-width: 29rem;
    margin-inline: auto;
    font-size: 0.82rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .smartco-login-polish .auth-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .smartco-login-polish .auth-brand-panel {
        min-height: 19rem;
    }
}

@media (max-width: 560px) {
    .smartco-login-polish .auth-form-panel,
    .smartco-login-polish .auth-brand-panel {
        padding: 1.35rem;
    }

    .smartco-login-polish .auth-brand-copy h1 {
        font-size: 2rem;
    }
}
