/* Login Page Styles */
* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.auth-form {
    padding: 40px 30px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 20px;
}

.password-requirements {
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.password-requirements p {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
}

.password-requirements li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.password-requirements li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.password-requirements li.valid::before {
    content: '✓';
    color: #27ae60;
}

/* Patreon Info Section */
.patreon-info {
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(249, 104, 84, 0.08), rgba(255, 66, 77, 0.08));
    border-radius: 8px;
    border-left: 4px solid #f96854;
}

.patreon-info p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.patreon-info p:last-child {
    margin-bottom: 0;
}

.patreon-info strong {
    color: #333;
    font-weight: 600;
}

.patreon-link-inline {
    color: #f96854;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.patreon-link-inline:hover {
    color: #ff424d;
    border-bottom-color: #ff424d;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.auth-btn.loading .btn-text {
    display: none;
}

.auth-btn.loading .btn-loading {
    display: inline;
}

.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.form-footer p {
    color: #666;
    font-size: 0.9rem;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.message-container {
    margin: 20px 30px 0;
    padding: 0;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        border-radius: 12px;
    }
    
    .login-header {
        padding: 30px 20px 25px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .login-card {
        background: #2c3e50;
        color: white;
    }
    
    .auth-form h2 {
        color: white;
    }
    
    .form-group label {
        color: #bdc3c7;
    }
    
    .form-group input {
        background: #34495e;
        border-color: #4a5568;
        color: white;
    }
    
    .form-group input:focus {
        background: #2d3748;
        border-color: #667eea;
    }
    
    .password-requirements {
        background: #34495e;
        border-left-color: #667eea;
    }
    
    .password-requirements p {
        color: #bdc3c7;
    }
    
    .password-requirements li {
        color: #a0aec0;
    }
    
    .form-footer {
        border-top-color: #4a5568;
    }
    
    .form-footer p {
        color: #a0aec0;
    }
    
    .patreon-info {
        background: linear-gradient(135deg, rgba(249, 104, 84, 0.15), rgba(255, 66, 77, 0.15));
        border-left-color: #f96854;
    }
    
    .patreon-info p {
        color: #bdc3c7;
    }
    
    .patreon-info strong {
        color: #ecf0f1;
    }
    
    .patreon-link-inline {
        color: #ff9a8b;
    }
    
    .patreon-link-inline:hover {
        color: #ffc3ba;
    }
}
