/* Shared auth page styles: login, forgot-password */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
    --auth-primary: #2F5EF7;
    --auth-primary-dark: #1a3a9e;
    --auth-primary-light: #6b8cfa;
    --auth-primary-subtle: #eef2fe;
    --auth-primary-glow: rgba(47, 94, 247, 0.25);
    --auth-bg-body: #f0f2f5;
    --auth-bg-card: #ffffff;
    --auth-bg-hero: linear-gradient(135deg, #2F5EF7 0%, #1a3a9e 100%);
    --auth-text-primary: #1a2332;
    --auth-text-secondary: #5a6577;
    --auth-text-hero: #ffffff;
    --auth-text-hero-sub: #c0d0f7;
    --auth-accent-green: #10b981;
    --auth-accent-red: #ef4444;
    --auth-border: #e2e6ed;
    --auth-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --auth-shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --auth-shadow-lg: 0 8px 28px rgba(0,0,0,0.10);
    --auth-radius: 12px;
    --auth-radius-sm: 8px;
    --auth-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Page wrapper */
.auth-page-wrapper {
    font-family: var(--auth-font);
    background: var(--auth-bg-body);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Hero section */
.auth-hero {
    background: var(--auth-bg-hero);
    padding: 48px 24px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
}

.auth-hero-content h1 {
    color: var(--auth-text-hero);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.auth-hero-content p {
    color: var(--auth-text-hero-sub);
    font-size: 15px;
    font-weight: 400;
}

/* Card container */
.auth-container {
    max-width: 480px;
    margin: -32px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: var(--auth-bg-card);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow-lg);
    padding: 32px 28px;
}

/* Inputs */
.auth-input-group {
    margin-bottom: 16px;
}

.auth-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text-secondary);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--auth-font);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-bg-card);
    color: var(--auth-text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-glow);
}

.auth-input::placeholder {
    color: #a0a8b8;
}

/* Error message */
.auth-error {
    color: var(--auth-accent-red);
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
    line-height: 1.4;
}

/* Buttons */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    background: var(--auth-primary);
    color: #fff;
    font-family: var(--auth-font);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    margin-top: 8px;
    gap: 8px;
    line-height: 1;
}

.auth-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 24px;
    background: var(--auth-bg-card);
    color: var(--auth-text-primary);
    font-family: var(--auth-font);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    gap: 8px;
    line-height: 1;
    text-decoration: none;
}

.auth-btn-outline:hover {
    border-color: var(--auth-primary);
    background: var(--auth-primary-subtle);
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--auth-primary);
    font-family: var(--auth-font);
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.auth-btn-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--auth-text-secondary);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider span {
    padding: 0 12px;
}

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--auth-text-secondary);
}

.auth-footer a {
    color: var(--auth-primary);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Password field with toggle */
.auth-password-field {
    position: relative;
}

.auth-password-field .auth-input {
    padding-right: 60px;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-secondary);
    font-size: 12px;
    font-family: var(--auth-font);
    cursor: pointer;
    font-weight: 500;
    padding: 2px 4px;
}

.auth-password-toggle:hover {
    color: var(--auth-primary);
}

/* Spinner */
.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 900px) {
    .auth-hero { padding: 40px 20px 56px; }
}

@media (max-width: 640px) {
    .auth-hero { padding: 32px 16px 48px; }
    .auth-hero-content h1 { font-size: 24px; }
    .auth-hero-content p { font-size: 14px; }
    .auth-container { margin-top: -28px; }
    .auth-card { padding: 24px 20px; }
}

@media (max-width: 400px) {
    .auth-hero { padding: 24px 12px 40px; }
    .auth-hero-content h1 { font-size: 22px; }
    .auth-container { padding: 0 10px; }
    .auth-card { padding: 20px 16px; }
    .auth-btn { padding: 11px 20px; font-size: 13px; }
    .auth-input { padding: 10px 12px; font-size: 13px; }
}
