.auth-page {
    --auth-primary: #3299E5;
    --auth-secondary-500: #5062F5;
    --auth-surface: #0B0A3B;
    --auth-text: #F5F7FF;
    --auth-muted: rgba(245, 247, 255, 0.65);
    --auth-error: #FF6B6B;
    --auth-success: #2BD97C;

    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(circle at 20% 10%, #4123AC 0%, #6E52D3 45%, #2CA5FF 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page,
.auth-page * {
    box-sizing: border-box;
}

.auth-page .auth-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-page .brand-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.auth-page .brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-page .brand-logo {
    width: 96px;
    height: 96px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(50, 153, 229, 0.35));
}

.auth-page .brand-message {
    font-size: 16px;
    font-weight: 600;
    color: var(--auth-text);
}

.auth-page .brand-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.auth-page .brand-tagline {
    font-size: 13px;
    color: var(--auth-muted);
}

.auth-page .social-proof {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    color: var(--auth-muted);
    font-size: 12px;
}

.auth-page .auth-card {
    background: #FFFFFF;
    border: 1px solid rgba(11, 10, 59, 0.12);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.12);
    color: #0B0A3B;
}

.auth-page .auth-title {
    color: #0B0A3B;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-page .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.auth-page .field label {
    font-size: 14px;
    color: #0B0A3B;
}

.auth-page .input-wrap {
    display: flex;
    align-items: center;
    background: #F6F8FF;
    border: 1px solid rgba(11, 10, 59, 0.12);
    border-radius: 14px;
    padding: 10px 12px;
    gap: 8px;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.auth-page .input-wrap:focus-within {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 2px rgba(50, 153, 229, 0.22);
}

.auth-page .input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: #0B0A3B;
    font-size: 14px;
    outline: none;
}

.auth-page .input-wrap input::placeholder {
    color: rgba(11, 10, 59, 0.55);
}

.auth-page .input-wrap input::selection {
    background: var(--auth-surface);
    color: var(--auth-text);
}

.auth-page .toggle-btn {
    border: none;
    background: transparent;
    color: rgba(11, 10, 59, 0.55);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.auth-page .toggle-btn:hover {
    color: #0B0A3B;
}

.auth-page .toggle-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.auth-page .error-text {
    color: var(--auth-error);
    font-size: 12px;
}

.auth-page .helper-text {
    color: rgba(11, 10, 59, 0.55);
    font-size: 12px;
}

.auth-page .checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(11, 10, 59, 0.55);
}

.auth-page .remember-label,
.auth-page .checkbox-row label {
    color: #0B0A3B;
    font-weight: 500;
}

.auth-page .btn {
    border: none;
    border-radius: 16px;
    height: 48px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.auth-page .btn-primary {
    width: 100%;
    background: rgba(47, 128, 237, 0.15);
    border: 1px solid #2F80ED;
    color: #2F80ED;
    box-shadow: none;
    border-radius: 4px;
}

.auth-page .primary-action {
    margin-top: 12px;
}

.auth-page .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-page .btn-secondary {
    background: transparent;
    border: 1px solid rgba(11, 10, 59, 0.12);
    color: #0B0A3B;
}

.auth-page .btn-link {
    background: transparent;
    border: none;
    color: var(--auth-secondary-500);
    font-weight: 700;
    cursor: pointer;
}

.auth-page .divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: rgba(11, 10, 59, 0.55);
    font-size: 12px;
    margin: 12px 0;
}

.auth-page .divider span {
    height: 1px;
    background: rgba(11, 10, 59, 0.12);
    display: block;
}

.auth-page .inline-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.auth-page .success-banner {
    border: 1px solid var(--auth-success);
    background: rgba(34, 197, 94, 0.1);
    padding: 12px;
    border-radius: 12px;
    color: #0B0A3B;
    font-size: 13px;
}

.auth-page .loading {
    margin-top: 8px;
    color: var(--auth-primary);
    font-size: 12px;
}
