:root {
    --primary: #1a2b3c;
    --primary-dark: #0d1721;
    --primary-light: #2c3e50;
    --accent: #3498db;
    --accent-gradient: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    --secondary: #4a5568;
    --light: #f8f9fa;
    --lighter: #ffffff;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7f9 0%, #e6ecf0 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 650px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.auth-left {
    flex: 1;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.auth-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.auth-left h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.auth-left p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.auth-features {
    margin-top: 2.5rem;
    text-align: left;
}

.auth-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-feature i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-feature div h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.auth-feature div p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.auth-right {
    flex: 1;
    display: flex;
    padding: 2rem;
    background: var(--lighter);
}

.auth-form {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

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

.auth-form-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-form-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.password-strength {
    height: 5px;
    background: var(--light);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-value {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: var(--transition);
}

.password-weak .password-strength-value {
    width: 33%;
    background: var(--danger);
}

.password-medium .password-strength-value {
    width: 66%;
    background: var(--warning);
}

.password-strong .password-strength-value {
    width: 100%;
    background: var(--success);
}

.password-feedback {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--text-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-check input {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.form-check a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.form-check a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-light);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 1.1rem;
}

.google-btn {
    color: #DB4437;
}

.microsoft-btn {
    color: #0078D7;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.recovery-success {
    text-align: center;
    padding: 2rem;
    display: none;
}

.recovery-success i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.recovery-success h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.recovery-success p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.auth-tabs {
    display: flex;
    flex-direction: column;
    margin-right: 2rem;
    border-right: 1px solid var(--border);
    min-width: 150px;
}
.auth-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    border-right: 3px solid transparent;
    text-align: left;
}

.auth-tab.active {
    color: var(--accent);
    border-right: 3px solid var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.auth-tab:hover {
    color: var(--accent);
}

.auth-content-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-content {
    display: none;
    width: 100%;
    max-width: 400px;
}

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

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

@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        min-height: auto;
        max-width: 500px;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 1.5rem;
        flex-direction: column;
    }
    
    .auth-tabs {
        flex-direction: row;
        margin-right: 0;
        margin-bottom: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-width: auto;
    }
    
    .auth-content-container {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .social-login {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .auth-tab {
        border-right: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .auth-tab.active {
        border-right: none;
        border-bottom: 3px solid var(--accent);
        background: rgba(var(--accent-rgb), 0.1);
    }
    
}

/* Toast Notification System */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--lighter);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    min-width: 300px;
    max-width: 400px;
}

.toast.show {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
    background: rgba(231, 76, 60, 0.05);
}

.toast.warning {
    border-left: 4px solid var(--warning);
    background: rgba(243, 156, 18, 0.05);
}

.toast.info {
    border-left: 4px solid var(--accent);
    background: rgba(52, 152, 219, 0.05);
}

.toast i {
    font-size: 1.25rem;
    color: var(--success);
}

.toast.error i {
    color: var(--danger);
}

.toast.warning i {
    color: var(--warning);
}

.toast.info i {
    color: var(--accent);
}

.toast-message {
    font-weight: 500;
    color: var(--text);
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
}

.toast-close:hover {
    background: var(--light);
    color: var(--text);
}

/* Loading Indicators */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 1rem;
    color: var(--text);
    font-weight: 500;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading.btn-primary::after {
    border-top-color: white;
}
