/* Authentication Pages Styles */

.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, var(--background) 0%, #1a1a2e 50%, var(--background) 100%);
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
}

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

.auth-header .back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-header .back-link:hover {
    color: var(--primary);
}

.auth-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

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

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

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Password Toggle Styles */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 3rem;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s;
}

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

.password-toggle:focus {
    outline: none;
    color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.auth-link:hover {
    color: var(--secondary);
}

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

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

.auth-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.lotto-balls-animation {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ball {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Beefcakes', 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    background: white;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    animation: ballBounce 2s ease-in-out infinite;
}

.ball-1 { animation-delay: 0s; }
.ball-2 { animation-delay: 0.2s; }
.ball-3 { animation-delay: 0.4s; }
.ball-4 { animation-delay: 0.6s; }
.ball-5 { animation-delay: 0.8s; }

@keyframes ballBounce {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-20px) scale(1.1); 
    }
}

.auth-quote {
    text-align: center;
    color: black;
}

.auth-quote h3 {
    font-family: 'Beefcakes', 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-quote p {
    font-size: 1.125rem;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Background Animation */
.auth-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .auth-visual {
        padding: 2rem;
        min-height: 300px;
    }

    .auth-header .back-link {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .ball {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .auth-quote h3 {
        font-size: 1.5rem;
    }

    .auth-quote p {
        font-size: 1rem;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error States */
.form-group.error input {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.form-group.success input {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.1);
}
