/* 
 * BucketlistMap Login CSS
 * Styles for login and authentication pages
 * Uses shared design system from variables.css
 * Created: 2025-08-27
 */

/* Import shared design tokens */
@import url('./variables.css');

body {
    font-family: var(--font-system);
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: var(--spacing-lg);
    box-sizing: border-box;
}

.login-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-3xl);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: #2d3a4a;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 32px;
    font-size: 16px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3a4a;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

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

.btn {
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: var(--transition-normal);
    margin-bottom: var(--spacing-lg);
}

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

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

.message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

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

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

.info {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    text-align: left;
}

.admin-note {
    margin-top: 20px;
    font-size: 12px;
    color: #888;
}

.admin-note a {
    color: #667eea;
    text-decoration: none;
}

.admin-note a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 24px;
        margin: 10px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .form-group input,
    .btn {
        padding: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-container {
        background: #1a1a1a;
        color: #e1e1e1;
    }
    
    .logo {
        color: #e1e1e1;
    }
    
    .form-group input {
        background: #2a2a2a;
        border-color: #404040;
        color: #e1e1e1;
    }
    
    .form-group input:focus {
        background: #333;
    }
    
    .info {
        background: #2a2a2a;
        color: #b1b1b1;
    }
}

/* Additional specific styles */
.login-code-input {
    text-transform: uppercase;
    font-family: monospace;
    letter-spacing: 2px;
}

.email-sent-notice {
    margin-top: 16px;
    padding: 12px;
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 8px;
    font-size: 14px;
    color: #004085;
}

.info-text {
    display: none;
}

.info-text.active {
    display: inline;
}
