/* 
 * Authentication Pages Styling
 * Modern, clean design inspired by the funscript.org aesthetic
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a0f2e 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-box {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 26, 58, 0.95));
    border: 2px solid rgba(147, 51, 234, 0.3);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.auth-box h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    background: linear-gradient(135deg, #fff, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-box h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: #aaa;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.auth-box input:focus {
    outline: none;
    border-color: #9333ea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.auth-box input::placeholder {
    color: #666;
}

.auth-box button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #9333ea, #7c2fc2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.auth-box button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.auth-box button[type="submit"]:active {
    transform: translateY(0);
}

.auth-box button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-box p {
    text-align: center;
    margin-top: 24px;
    color: #aaa;
    font-size: 14px;
}

.auth-box p a {
    color: #9333ea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-box p a:hover {
    color: #a855f7;
}

/* Message Box */
#message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

#message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

#message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

#message.info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox for Remember Me */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-checkbox label {
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
}

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

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

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-box {
        padding: 32px 24px;
    }
    
    .auth-box h1 {
        font-size: 28px;
    }
    
    .auth-box h2 {
        font-size: 18px;
    }
    
    .auth-box input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .auth-box button[type="submit"] {
        padding: 14px;
        font-size: 15px;
    }
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }

.text-muted { color: #aaa; }
.text-primary { color: #9333ea; }
.text-success { color: #10b981; }
.text-error { color: #ef4444; }

.hidden {
    display: none !important;
}
