/**
 * AUTHENTICATION UI STYLES
 */

/* Login Screen Container */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #79b061 0%, #5a8a47 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .app-title {
    color: #79b061;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header .app-subtitle {
    color: #666;
    font-size: 0.95rem;
}

/* Auth Forms */
.auth-form {
    animation: fadeIn 0.3s ease;
}

.auth-form h2 {
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #79b061;
    box-shadow: 0 0 0 3px rgba(121, 176, 97, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Google Sign-In Button */
.btn-google {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

.btn-google i {
    font-size: 1.25rem;
    color: #4285f4;
}

/* Auth Links */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.auth-links a {
    color: #79b061;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #5a8a47;
    text-decoration: underline;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Container (hidden until login) */
#appContainer {
    width: 100%;
    height: 100%;
}

#appContainer.hidden {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem 1.5rem;
    }
    
    .login-header .app-title {
        font-size: 1.5rem;
    }
    
    .auth-form h2 {
        font-size: 1.3rem;
    }
}

/* Synced status styling */
.sync-status.synced {
    background: #e8f5e0;
    color: #79b061;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-status.synced i {
    font-size: 1rem;
}

#userName {
    font-weight: 600;
    color: #79b061;
}
