/* ========================================
   ROT — Auth Page Styles
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Subtle background grid */
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(180, 240, 196, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 240, 196, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Accent glow orb */
.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(180, 240, 196, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* --- Card --- */
.auth-card {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo a {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.auth-logo a span {
    color: var(--accent);
}

.auth-form-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.auth-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

/* --- Form Fields --- */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.auth-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

.auth-input:focus {
    border-color: var(--accent-dim);
}

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

/* --- Submit Button --- */
.auth-submit {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.auth-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

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

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- OAuth Divider --- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

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

.auth-divider span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- OAuth Buttons --- */
.auth-oauth-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.auth-oauth-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

.auth-oauth-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Bottom Link --- */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

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

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

/* --- Error / Success Messages --- */
.auth-message {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: none;
}

.auth-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    display: block;
}

.auth-message.success {
    background: rgba(180, 240, 196, 0.1);
    border: 1px solid rgba(180, 240, 196, 0.2);
    color: var(--accent);
    display: block;
}

/* --- Password Toggle --- */
.auth-password-wrap {
    position: relative;
}

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    transition: color var(--transition-fast);
}

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

/* --- Loading spinner --- */
.auth-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

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

/* --- Responsive --- */
@media (max-width: 480px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-form-container {
        padding: 1.5rem;
    }
}