/* Clean Auth Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.clean-auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #1f2937;
}

/* Main Wrapper */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

/* Back to Home */
.back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.8);
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid #e5e7eb;
}

/* Logo Section */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Login Type Selector */
.login-type-selector {
    margin-bottom: 2rem;
}

.login-type-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 0.25rem;
    position: relative;
}

.login-type-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    color: #6b7280;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.login-type-tab.active {
    color: #3b82f6;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-type-tab:hover:not(.active) {
    color: #374151;
}

.login-type-tab i {
    font-size: 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #6b7280;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #1d4ed8;
}

/* Login Button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 2rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Register Section */
.register-section {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.register-section p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.register-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.register-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Form Messages */
.form-messages {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
}

.form-messages.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.form-messages.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-footer p {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Admin Mode Styling */
.login-form.admin-mode .login-type-tab.active {
    color: #059669;
}

.login-form.admin-mode .login-btn {
    background: linear-gradient(135deg, #059669, #047857);
}

.login-form.admin-mode .login-btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
}

.login-form.admin-mode .register-btn {
    color: #059669;
    border-color: #059669;
}

.login-form.admin-mode .register-btn:hover {
    background: #059669;
}

.login-form.admin-mode .forgot-link {
    color: #059669;
}

.login-form.admin-mode .forgot-link:hover {
    color: #047857;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .back-home {
        top: 1rem;
        left: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin: 0 0.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .login-logo img {
        width: 40px;
        height: 40px;
    }
    
    .login-logo h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .login-type-tab span {
        display: none;
    }
    
    .login-type-tab {
        padding: 0.75rem;
    }
}
/* Regis
ter Page Specific Styles */
.register-card {
    max-width: 480px;
}

.register-form .form-group {
    margin-bottom: 1.25rem;
}

.register-submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.register-submit-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.login-redirect-btn {
    color: #10b981;
    border-color: #10b981;
}

.login-redirect-btn:hover {
    background: #10b981;
    color: white;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.password-strength.weak {
    background: #fef2f2;
    color: #dc2626;
}

.password-strength.medium {
    background: #fef3c7;
    color: #d97706;
}

.password-strength.strong {
    background: #f0fdf4;
    color: #16a34a;
}

/* Terms and Conditions Links */
.checkbox-label a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Login Section (opposite of register section) */
.login-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

/* Responsive adjustments for register form */
@media (max-width: 768px) {
    .register-card {
        max-width: 100%;
    }
    
    .register-form .form-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .checkbox-label {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}/* Gener
ate Email Button */
.generate-email-btn {
    background: none;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: all 0.2s ease;
}

.generate-email-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.form-help {
    line-height: 1.4;
}

.form-help .generate-email-btn {
    display: inline-block;
    margin-left: 0.5rem;
}