/*
 * Login and password reset pages.
 * Plain CSS served as-is (no Vite build), scoped under .auth.
 */
.auth {
    --auth-red: #e3262b;
    --auth-red-dark: #b81d22;
    --auth-ink: #111214;
    --auth-text: #1f2328;
    --auth-muted: #6b7280;
    --auth-line: #d4d7dd;
    --auth-bg: #f4f5f7;

    display: flex;
    min-height: 100vh;
    font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
    color: var(--auth-text);
    background: var(--auth-bg);
}

/* Brand panel, desktop only */
.auth-brand {
    display: none;
    position: relative;
    flex: 1 1 50%;
    overflow: hidden;
    padding: 56px;
    color: #fff;
    background: var(--auth-ink);
}

.auth-brand::before {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    left: -260px;
    bottom: -320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 38, 43, .55) 0%, rgba(227, 38, 43, 0) 65%);
}

.auth-brand-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.auth-brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

.auth-brand-title {
    margin: 0 0 12px;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
}

.auth-brand-text {
    max-width: 380px;
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #c9ccd2;
}

.auth-brand-footer {
    font-size: 13px;
    color: #8a8f98;
}

/* Form side */
.auth-main {
    display: flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px 32px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 18, 20, .06), 0 12px 32px rgba(17, 18, 20, .08);
}

.auth-card-logo {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 14px;
}

.auth-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-align: center;
}

.auth-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--auth-muted);
    text-align: center;
}

.auth-form {
    margin-top: 28px;
}

.auth-field + .auth-field {
    margin-top: 18px;
}

.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.auth-label {
    font-size: 14px;
    font-weight: 600;
}

.auth .auth-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    font-size: 15px;
    color: var(--auth-text);
    background: #fff;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.auth .auth-input:focus {
    border-color: var(--auth-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 38, 43, .18);
}

.auth .auth-input.is-invalid {
    border-color: var(--auth-red);
}

.auth-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--auth-red-dark);
}

.auth-status {
    margin-top: 24px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: #14532d;
    background: #dcfce7;
}

.auth-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-red);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-red-dark);
    text-decoration: underline;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 14px;
    cursor: pointer;
}

.auth .auth-check input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    color: var(--auth-red);
}

.auth-button {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 24px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--auth-red);
    cursor: pointer;
    transition: background-color .15s;
}

.auth-button:hover {
    background: var(--auth-red-dark);
}

.auth-button:focus-visible {
    outline: 3px solid rgba(227, 38, 43, .35);
    outline-offset: 2px;
}

.auth-back {
    display: block;
    margin-top: 20px;
    text-align: center;
}

@media (min-width: 960px) {
    .auth-brand {
        display: block;
    }

    .auth-card-logo {
        display: none;
    }
}
