/* Login / Register — aligned with custom.css --df-* tokens */

.auth-shell {
    max-width: 440px;
    margin: 2rem auto 2.5rem;
    padding: 0 16px 28px;
}

.auth-card {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f7fbfc 48%, #eef4f6 100%);
    border: 1px solid var(--df-border, #e3dff2);
    border-radius: 22px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow:
        0 4px 6px rgba(7, 33, 47, 0.04),
        0 22px 48px -14px rgba(7, 33, 47, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--df-primary-soft, #0f425d) 0%, var(--df-primary, #07212f) 55%, var(--df-primary-dark, #04161f) 100%);
    border-radius: 22px 22px 0 0;
}

.auth-head {
    position: relative;
    margin-bottom: 0.25rem;
}

.auth-head h2 {
    margin: 0;
    font-family: var(--df-font-family, "Roboto", "Segoe UI", system-ui, sans-serif);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--df-text, #2e2b3f);
    background: linear-gradient(115deg, var(--df-text, #102734) 0%, var(--df-primary-soft, #0f425d) 46%, var(--df-primary, #07212f) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--df-text, #2e2b3f);
}

@supports not (background-clip: text) {
    .auth-head h2 {
        -webkit-text-fill-color: var(--df-text, #2e2b3f);
        background: none;
    }
}

.auth-head p {
    margin: 0.65rem 0 1.35rem;
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--df-muted, #6d6786);
}

.auth-head::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    margin-bottom: 0.15rem;
    background: linear-gradient(90deg, var(--df-primary-soft, #0f425d), var(--df-primary, #07212f));
    opacity: 0.9;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: 0.4rem;
}

.auth-field label {
    font-size: 0.8125rem;
    color: var(--df-muted, #6d6786);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.auth-field input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--df-border, #e3dff2);
    border-radius: 12px;
    background: #fff;
    color: var(--df-text, #2e2b3f);
    padding: 0 14px;
    font-size: 0.94rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(37, 22, 96, 0.04);
}

.auth-field input::placeholder {
    color: #8ca0ab;
}

.auth-field input:hover {
    border-color: #b7cad2;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--df-primary-soft, #0f425d);
    box-shadow: 0 0 0 3px rgba(7, 33, 47, 0.14);
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--df-muted, #6d6786);
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: var(--df-primary, #07212f);
    cursor: pointer;
}

.auth-link {
    color: var(--df-primary, #07212f);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-link:hover {
    color: var(--df-primary-soft, #0f425d);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-btn {
    width: 100%;
    margin-top: 0.35rem;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 700;
    font-family: var(--df-font-family, "Roboto", "Segoe UI", system-ui, sans-serif);
    letter-spacing: 0.02em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--df-primary-soft, #0f425d) 0%, var(--df-primary, #07212f) 100%);
    box-shadow: 0 8px 22px rgba(7, 33, 47, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(7, 33, 47, 0.3);
    filter: brightness(1.03);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-foot {
    margin: 1.1rem 0 0;
    text-align: center;
    color: var(--df-muted, #6d6786);
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-message {
    margin: 0.75rem 0 0;
    min-height: 22px;
    color: #1e7e45;
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 576px) {
    .auth-shell {
        margin: 1.25rem auto 1.75rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem 1.35rem;
        border-radius: 18px;
    }

    .auth-card::before {
        border-radius: 18px 18px 0 0;
    }

    .auth-head h2 {
        font-size: 1.45rem;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Login page — a focused, two-panel account experience. */
.auth-login-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 170px);
    max-width: 1040px;
    margin: 0 auto;
    padding: 34px 20px 52px;
}

.auth-login-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.94fr) minmax(390px, 1.06fr);
    width: min(100%, 920px);
    overflow: hidden;
    background: #fff;
    border: 1px solid #c8d8de;
    border-radius: 3px;
    box-shadow: 0 22px 54px rgba(7, 33, 47, 0.15);
}

.auth-login-intro {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    padding: 38px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 24%, rgba(102, 184, 210, 0.24), transparent 26%),
        radial-gradient(circle at 15% 92%, rgba(84, 149, 172, 0.26), transparent 34%),
        linear-gradient(145deg, #062132 0%, #0c4159 58%, #092b3e 100%);
}

.auth-login-intro::before,
.auth-login-intro::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.auth-login-intro::before {
    top: -88px;
    right: -118px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,0.12);
    transform: rotate(45deg);
}

.auth-login-intro::after {
    right: 30px;
    bottom: 30px;
    width: 150px;
    height: 1px;
    background: rgba(255,255,255,0.28);
}

.auth-login-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: 148px;
}

.auth-login-brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.auth-login-gem {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 68px 0 24px;
    border: 1px solid rgba(255,255,255,0.46);
    border-radius: 50%;
    transform: rotate(45deg);
}

.auth-login-gem::before,
.auth-login-gem::after,
.auth-login-gem span {
    position: absolute;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.78);
    content: "";
}

.auth-login-gem::before { transform: rotate(30deg); }
.auth-login-gem::after { transform: rotate(60deg); }
.auth-login-gem span { transform: rotate(90deg); }

.auth-login-eyebrow,
.auth-kicker {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.auth-login-eyebrow { position: relative; z-index: 1; color: #8ed1e7; }

.auth-login-intro h1 {
    position: relative;
    z-index: 1;
    margin: 11px 0 15px;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.32rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.auth-login-copy {
    position: relative;
    z-index: 1;
    max-width: 340px;
    margin: 0;
    color: rgba(255,255,255,0.76);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-login-trust {
    position: absolute;
    z-index: 1;
    right: 38px;
    bottom: 32px;
    left: 38px;
    display: grid;
    gap: 9px;
    color: rgba(255,255,255,0.8);
    font-size: 0.76rem;
}

.auth-login-trust span { display: inline-flex; align-items: center; gap: 8px; }
.auth-login-trust .material-icons { font-size: 16px; color: #8ed1e7; }

.auth-login-form-area {
    padding: 30px clamp(30px, 5vw, 58px) 38px;
}

.auth-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #617985;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.auth-back-home:hover { color: var(--df-primary, #07212f); }
.auth-back-home .material-icons { font-size: 16px; }

.auth-login-form-area .auth-head { margin: 58px 0 28px; }
.auth-login-form-area .auth-kicker { color: #527383; }
.auth-login-form-area .auth-head h2 {
    margin: 8px 0 6px;
    color: #102734;
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    -webkit-text-fill-color: currentColor;
    background: none;
}
.auth-login-form-area .auth-head p:not(.auth-kicker) { margin: 0; color: #617985; }
.auth-login-form-area .auth-head::after { display: none; }

.auth-login-form-area .auth-form { gap: 17px; }
.auth-login-form-area .auth-field { position: relative; gap: 7px; }
.auth-login-form-area .auth-field label { color: #274a5b; font-size: 0.78rem; font-weight: 700; }
.auth-login-form-area .auth-field-icon > .material-icons {
    position: absolute;
    top: auto;
    bottom: 15px;
    left: 14px;
    width: 20px;
    line-height: 19px;
    text-align: center;
    color: #718b98;
    font-size: 19px;
    pointer-events: none;
}
.auth-login-form-area .auth-field input {
    height: 49px;
    padding-left: 45px;
    border-radius: 3px;
    border-color: #c8d8de;
    box-shadow: none;
}
.auth-login-form-area .auth-row { margin-top: 0; }
.auth-login-form-area .remember-me { color: #526e7c; font-size: 0.8rem; }
.auth-login-form-area .auth-link { color: #0b4a68; font-size: 0.8rem; }
.auth-login-form-area .auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin-top: 3px;
    padding: 0 18px;
    border-radius: 3px;
    background: #072f45;
    box-shadow: none;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}
.auth-login-form-area .auth-btn:hover { background: #0f425d; transform: translateY(-1px); box-shadow: none; }
.auth-login-form-area .auth-btn .material-icons { font-size: 17px; }
.auth-login-form-area .auth-foot { margin-top: 6px; color: #617985; font-size: 0.82rem; }

.auth-terms {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: #617985;
    font-size: 0.76rem;
    line-height: 1.45;
}

.auth-terms input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: var(--df-primary, #07212f);
}

.auth-standalone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 40px, 1120px);
    min-height: 84px;
    margin: 0 auto;
}

.auth-standalone-header .diamond-brand-logo-image { width: 156px; }

.auth-back-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #274a5b;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.auth-back-login .material-icons { font-size: 17px; }
.auth-back-login:hover { color: var(--df-primary, #07212f); }

.auth-reset-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 120px);
    padding: 24px 20px 54px;
}

.auth-reset-card {
    width: min(100%, 455px);
    padding: 43px 42px 39px;
    background: #fff;
    border: 1px solid #c8d8de;
    border-radius: 3px;
    box-shadow: 0 22px 54px rgba(7, 33, 47, 0.13);
}

.auth-reset-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #e8f2f6;
    color: #0b4a68;
}

.auth-reset-icon .material-icons { font-size: 26px; }
.auth-reset-card .auth-kicker { color: #527383; }
.auth-reset-card h1 {
    margin: 8px 0 9px;
    color: #102734;
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}
.auth-reset-card > p:not(.auth-kicker):not(.auth-foot) { margin: 0 0 27px; color: #617985; font-size: 0.9rem; line-height: 1.55; }
.auth-reset-card .auth-field { position: relative; gap: 7px; }
.auth-reset-card .auth-field label { color: #274a5b; font-size: 0.78rem; font-weight: 700; }
.auth-reset-card .auth-field-icon > .material-icons { position: absolute; bottom: 15px; left: 14px; width: 20px; color: #718b98; font-size: 19px; line-height: 19px; text-align: center; pointer-events: none; }
.auth-reset-card .auth-field input { height: 49px; padding-left: 45px; border-radius: 3px; border-color: #c8d8de; box-shadow: none; }
.auth-reset-card .auth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin-top: 3px; border-radius: 3px; background: #072f45; box-shadow: none; font-size: 0.78rem; letter-spacing: 0.1em; }
.auth-reset-card .auth-btn:hover { background: #0f425d; transform: translateY(-1px); box-shadow: none; }
.auth-reset-card .auth-btn .material-icons { font-size: 17px; }

@media (max-width: 767px) {
    .auth-login-shell { min-height: auto; padding: 20px 12px 38px; }
    .auth-login-card { grid-template-columns: 1fr; }
    .auth-login-intro { min-height: 255px; padding: 26px 25px; }
    .auth-login-gem { position: absolute; top: 34px; right: 35px; width: 52px; height: 52px; margin: 0; }
    .auth-login-gem::before, .auth-login-gem::after, .auth-login-gem span { width: 29px; height: 29px; }
    .auth-login-intro h1 { max-width: 230px; margin-top: 48px; font-size: 1.72rem; }
    .auth-login-copy { max-width: 320px; font-size: 0.82rem; }
    .auth-login-trust { display: none; }
    .auth-login-form-area { padding: 24px 25px 30px; }
    .auth-login-form-area .auth-head { margin: 37px 0 25px; }
    .auth-standalone-header { width: calc(100% - 28px); min-height: 68px; }
    .auth-standalone-header .diamond-brand-logo-image { width: 130px; }
    .auth-back-login { font-size: 0.67rem; }
    .auth-reset-shell { min-height: calc(100vh - 85px); padding: 12px 14px 35px; }
    .auth-reset-card { padding: 34px 25px 30px; }
}
