/* auth.css - Authentication Styles for FC_AI */

/* Use the same CSS variables from style.css */
:root {
    --primary: #10a37f;
    --primary-dark: #0d8c6d;
    --primary-light: #e6f7f2;
    --secondary: #74aa9c;
    --accent: #ff6b6b;
    --text-primary: #202123;
    --text-secondary: #6e6e80;
    --text-tertiary: #acacbe;
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f8;
    --bg-tertiary: #ececf1;
    --border: #e5e5e5;
    --border-dark: #d9d9e3;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-sm: 4px;
    --sidebar-width: 260px;
    --transition: all 0.2s ease;
    --success: #10a37f;
    --danger: #ff6b6b;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --border: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(255, 255, 255, 0.2);
}

/* Auth Container */
#authScreens {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-primary);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    min-width: 300px;
    padding: 20px;
    animation: slideUp 0.5s ease;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.auth-box {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 40px);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-header {
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 15px);
    margin-bottom: clamp(15px, 3vw, 20px);
    flex-wrap: wrap;
}

.auth-logo i {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.auth-logo h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.auth-header h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: clamp(6px, 1.5vw, 8px);
    color: var(--text-primary);
    text-align: center;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.4;
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
}

/* Google Sign In Button */
.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 12px);
    width: 100%;
    padding: clamp(12px, 3vw, 14px) clamp(16px, 4vw, 24px);
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: clamp(15px, 3vw, 20px);
    position: relative;
    overflow: hidden;
}

.google-signin-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.google-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-icon i {
    color: #4285F4;
    font-size: 1.1rem;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: clamp(20px, 4vw, 25px) 0;
    position: relative;
}

.divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 clamp(10px, 2vw, 15px);
    color: var(--text-tertiary);
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    font-weight: 500;
    background: var(--bg-primary);
    z-index: 1;
}

/* Auth Form */
.auth-form {
    margin-top: clamp(15px, 3vw, 20px);
}

.form-group {
    margin-bottom: clamp(15px, 3vw, 20px);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    font-weight: 500;
}

.form-group label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: clamp(12px, 3vw, 14px) clamp(14px, 3vw, 16px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    transition: var(--transition);
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1);
    background: var(--bg-primary);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

/* Password Input */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--danger);
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-fill.weak { width: 25%; background: var(--danger); }
.strength-fill.fair { width: 50%; background: var(--warning); }
.strength-fill.good { width: 75%; background: var(--success); }
.strength-fill.strong { width: 100%; background: #34d399; }

.strength-text {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(15px, 3vw, 20px);
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    cursor: pointer;
    user-select: none;
    margin-bottom: clamp(15px, 3vw, 20px);
    line-height: 1.4;
}

.terms-agreement input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: clamp(12px, 3vw, 14px);
    border: none;
    border-radius: var(--radius);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 10px);
    position: relative;
    overflow: hidden;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.auth-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-btn.primary:active {
    transform: translateY(0);
}

.auth-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn.primary:hover::before {
    left: 100%;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: clamp(20px, 4vw, 25px);
    padding-top: clamp(15px, 3vw, 20px);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Auth Features */
.auth-features {
    display: flex;
    justify-content: space-around;
    margin-top: clamp(20px, 4vw, 30px);
    padding-top: clamp(15px, 3vw, 20px);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 15px);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    color: var(--text-secondary);
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 500;
    min-width: 80px;
}

.feature i {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--primary);
}

/* Back to Login */
.back-to-login {
    text-align: center;
    margin-top: clamp(15px, 3vw, 20px);
}

.back-to-login a {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 16px);
    border-radius: var(--radius);
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

.back-to-login a:hover {
    color: var(--secondary);
    background: var(--bg-secondary);
    text-decoration: none;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-menu-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-menu-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 280px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    margin-bottom: 10px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.dropdown-user-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-user-info span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--danger);
}

/* Account Settings */
.account-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.account-avatar-large {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.account-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.change-avatar-btn {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: var(--transition);
}

.change-avatar-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.account-details {
    flex: 1;
    min-width: 0;
}

.account-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-details p {
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 500;
}

.account-status i {
    font-size: 0.7rem;
}

/* Avatar Modal */
#avatarModal .modal-content {
    max-width: 500px;
    width: 90%;
}

.avatar-options {
    text-align: center;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    background: var(--bg-secondary);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload {
    margin-bottom: 24px;
}

.avatar-upload button {
    margin-bottom: 8px;
}

.upload-hint {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 8px;
}

.avatar-presets h4 {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.preset-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.preset-avatar:hover {
    transform: scale(1.05);
    border-color: var(--border);
}

.preset-avatar.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.2);
}

.preset-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#avatarModal .modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

#avatarModal .modal-footer button {
    flex: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Utility Classes */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-1px);
}

/* Loading State */
.auth-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.auth-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error States */
.form-group.error input {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.form-group.error .error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Success States */
.form-group.success input {
    border-color: var(--success);
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1);
}

/* Password Requirements */
.password-requirements {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.password-requirements ul {
    list-style: none;
    padding-left: 20px;
    margin: 4px 0;
}

.password-requirements li {
    position: relative;
    margin-bottom: 2px;
    line-height: 1.4;
}

.password-requirements li:before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--text-tertiary);
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid:before {
    content: '✓';
    color: var(--success);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 16px;
        max-width: 90%;
    }
    
    .auth-box {
        padding: 24px 20px;
    }
    
    .auth-logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-logo i {
        font-size: 1.8rem;
    }
    
    .auth-logo h1 {
        font-size: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
    
    .auth-features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .feature {
        min-width: 70px;
    }
    
    .dropdown-menu {
        width: 240px;
        left: -50%;
        transform: translateX(-50%);
    }
    
    .preset-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    #authScreens {
        padding: 10px;
    }
    
    .auth-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .auth-box {
        padding: 20px 16px;
    }
    
    .auth-logo i {
        font-size: 1.5rem;
    }
    
    .auth-logo h1 {
        font-size: 1.3rem;
    }
    
    .auth-header h2 {
        font-size: 1.1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .auth-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .feature {
        flex-direction: row;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .divider span {
        padding: 0 10px;
        font-size: 0.75rem;
    }
    
    .dropdown-menu {
        width: 200px;
        left: -100%;
    }
    
    .preset-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .avatar-preview {
        width: 100px;
        height: 100px;
    }
}

/* For iPad Pro and similar tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .auth-container {
        max-width: 60%;
    }
    
    .auth-box {
        padding: 32px 28px;
    }
}

/* For desktop/laptop screens */
@media (min-width: 1025px) {
    .auth-container {
        max-width: 480px;
    }
}

/* For very large screens */
@media (min-width: 1440px) {
    .auth-container {
        max-width: 520px;
    }
    
    .auth-box {
        padding: 44px 36px;
    }
}

/* Ensure proper scaling on mobile */
@media (max-height: 700px) and (max-width: 768px) {
    #authScreens {
        align-items: flex-start;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .auth-container {
        min-height: auto;
    }
}

/* Fix for landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #authScreens {
        padding: 10px;
        align-items: center;
    }
    
    .auth-container {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .auth-box {
        padding: 20px;
    }
    
    .auth-features {
        display: none;
    }
}

/* Fix for Google Sign In Button */
#googleSignInButton,
#googleSignUpButton {
    width: 100%;
}

#googleSignInButton > div,
#googleSignUpButton > div {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

#googleSignInButton iframe,
#googleSignUpButton iframe {
    margin: 0 auto !important;
}

/* Glass effect for auth boxes in dark mode */
[data-theme="dark"] .auth-box {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
}

/* Add some particles for visual appeal */
.auth-container .animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Auth Notifications */
.auth-notification {
    position: relative;
    overflow: hidden;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.auth-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    animation: notificationProgress 5s linear forwards;
}

@keyframes notificationProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.auth-notification-success::before {
    background: rgba(255, 255, 255, 0.4);
}

.auth-notification-error::before {
    background: rgba(255, 255, 255, 0.4);
}

.auth-notification-warning::before {
    background: rgba(255, 255, 255, 0.4);
}

.auth-notification-info::before {
    background: rgba(255, 255, 255, 0.4);
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.notification-close:hover {
    opacity: 1 !important;
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-fill.strong {
    width: 100%;
    background: #10a37f;
}

.strength-text {
    font-size: 12px;
    color: #6b7280;
    display: block;
    text-align: right;
}

/* Form validation styles */
.form-group.error input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
}

.form-group.success input {
    border-color: #10a37f !important;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add to auth.css - Notification styles matching script.js */

/* Notification container */
.auth-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

/* Notification base styles */
.auth-notification {
    background: linear-gradient(135deg, var(--info), #3b82f6);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.auth-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.auth-notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

/* Notification types */
.auth-notification-success {
    background: linear-gradient(135deg, var(--success), #10a37f);
}

.auth-notification-error {
    background: linear-gradient(135deg, var(--danger), #ef4444);
}

.auth-notification-warning {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
}

.auth-notification-info {
    background: linear-gradient(135deg, var(--info), #3b82f6);
}

/* Notification icon */
.notification-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Notification content */
.notification-content {
    flex: 1;
}

/* Close button */
.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}