/* Authentication Styles */

.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    overflow: auto;
}

.auth-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.app-logo {
    margin-bottom: 30px;
}

.app-logo i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.app-logo h1 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.app-logo p {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 1.1rem;
}

.auth-form h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-switch {
    color: #666;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Message Container */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.message.success {
    background: #27ae60;
    color: white;
}

.message.error {
    background: #e74c3c;
    color: white;
}

.message.info {
    background: #3498db;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading State */
#auth-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-container {
    text-align: center;
    color: #ff6b6b;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main App Container */
.main-app-container {
    min-height: 100vh;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .app-logo h1 {
        font-size: 2rem;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
    
    .form-group input {
        padding: 12px;
    }
    
    .auth-btn {
        padding: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auth-content {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .app-logo h1 {
        color: #fff;
    }
    
    .app-logo p {
        color: #bbb;
    }
    
    .auth-form h2 {
        color: #fff;
    }
    
    .form-group input {
        background: #3a3a3a;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .form-group input:focus {
        border-color: #ff6b6b;
    }
    
    .checkbox-label {
        color: #bbb;
    }
    
    .auth-switch {
        color: #bbb;
    }
}
