/* =============================================================================
   AUTH STYLES — monks.gg Light Theme
   ============================================================================= */

:root {
    --auth-accent: #059669;
    --auth-accent-hover: #047857;
    --auth-accent-glow: rgba(5, 150, 105, 0.15);
    --auth-bg: linear-gradient(135deg, #f4f9f6 0%, #eaf4ef 100%);
    --auth-card-bg: #ffffff;
    --auth-text: #0f172a;
    --auth-text-muted: #94a3b8;
    --auth-border: #e2e8f0;
    --auth-input-bg: #f8fafc;
    --auth-error: #ef4444;
    --auth-success: #059669;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--auth-bg);
    min-height: 100vh;
    color: var(--auth-text);
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    background: var(--auth-card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.auth-logo-svg {
    width: 280px;
    height: auto;
}

.auth-logo:hover {
    transform: scale(1.03);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--auth-text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--auth-text);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--auth-input-bg);
    color: var(--auth-text);
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px var(--auth-accent-glow);
    background: #fff;
}

.input-wrapper input::placeholder {
    color: #cbd5e1;
}

.error-message {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--auth-error);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.15);
    color: var(--auth-success);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

.btn-primary {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-hover) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.30);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--auth-border);
}

.auth-footer p {
    color: var(--auth-text-muted);
    font-size: 0.85rem;
}

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

.auth-footer a:hover {
    color: var(--auth-accent-hover);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .auth-container {
        padding: 1rem;
    }
}