/* 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;
    }
}
