/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES (register.html, login.html)
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 8px;
}

.auth-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* Card */
.auth-card {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input {
    padding: 12px 14px;
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: border-color var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Turnstile */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    min-height: 65px;
}

.cf-turnstile {
    margin: 0 auto;
}

/* Submit button */
.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.btn-full:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

/* OAuth buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    font-family: 'Play', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-oauth:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.btn-oauth svg {
    flex-shrink: 0;
}

/* Footer */
.auth-footer {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

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

/* Language selector */
.auth-lang {
    margin-top: 8px;
}

.auth-lang .lang-menu-up {
    bottom: 100%;
    top: auto;
    margin-bottom: 8px;
    margin-top: 0;
}

/* Messages */
.auth-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Forgot password link */
.forgot-password {
    text-align: right;
    margin-top: -12px;
}

.forgot-password a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
}

.forgot-password a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-page {
        padding: 24px 16px;
    }
    
    .auth-card {
        padding: 24px 20px;
    }
    
    .auth-title {
        font-size: 1.3rem;
    }
}
