:root {
    --primary: #4a6cf7;
    --primary-dark: #3a56d4;
    --primary-light: #eef1ff;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    z-index: 1;
    position: relative;
}

.brand-logo img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.brand-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.brand-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.auth-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.illustration-content {
    text-align: center;
    max-width: 400px;
}

.illustration-content i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.illustration-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.illustration-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
    z-index: 1;
    position: relative;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.feature i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.auth-right-panel {
    flex: 1;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.auth-form-wrapper {
    max-width: 400px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-icon {
    padding: 0 1rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 0.875rem 0;
    border: none;
    background: none;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
}

.input-group input::placeholder {
    color: var(--gray-light);
}

.password-toggle {
    padding: 0 1rem;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--dark);
}

.error-message {
    font-size: 0.85rem;
    color: var(--danger);
    margin-top: 0.5rem;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: var(--danger);
    transition: var(--transition);
}

.strength-text {
    font-size: 0.85rem;
    color: var(--gray);
}

.strength-text span {
    font-weight: 600;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    user-select: none;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox:hover input ~ .checkmark {
    border-color: var(--primary);
}

.checkbox input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--gray);
}

.forgot-link {
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    position: relative;
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-text {
    background: transparent;
    color: white;
    border: none;
}

.btn-text:hover {
    color: var(--dark);
    background: var(--border-light);
}

.btn-text .link {
    color: var(--primary);
    text-decoration: none;
}

.btn-text .link:hover {
    text-decoration: underline;
}

.btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 1rem;
    background: var(--white);
}

.auth-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    margin-top: 1.5rem;
}

.auth-info i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.125rem;
}

.auth-info p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

.auth-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-info a:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.auth-footer p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.auth-mobile-brand {
    display: none;
    padding: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.mobile-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.verification-container {
    text-align: center;
}

.verification-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.verification-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.verification-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.verification-header p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.verification-email {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 2rem;
}

.verification-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.info-item i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.info-item h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.verification-footer {
    font-size: 0.9rem;
    color: var(--gray);
}

.verification-footer .link {
    color: var(--primary);
    background: none;
    border: none;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.verification-footer .link:hover {
    text-decoration: none;
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: toastSlide 0.3s ease;
    min-width: 300px;
    border-left: 4px solid var(--primary);
}

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.info {
    border-left-color: var(--primary);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.toast.success .toast-icon {
    background: var(--success);
    color: white;
}

.toast.error .toast-icon {
    background: var(--danger);
    color: white;
}

.toast.info .toast-icon {
    background: var(--primary);
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 0.95rem;
    color: var(--dark);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.toast-close:hover {
    background: var(--border-light);
    color: var(--dark);
}

@media (max-width: 1024px) {
    .auth-left-panel {
        padding: 2rem;
    }
    
    .auth-right-panel {
        padding: 2rem;
    }
    
    .illustration-content h2 {
        font-size: 2rem;
    }
    
    .illustration-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        padding-top: 70px;
    }
    
    .auth-left-panel {
        display: none;
    }
    
    .auth-mobile-brand {
        display: block;
    }
    
    .auth-right-panel {
        padding: 2rem 1rem;
        min-height: calc(100vh - 70px);
    }
    
    .auth-form-wrapper {
        max-width: 100%;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .verification-info {
        gap: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .toast {
        min-width: auto;
        max-width: calc(100vw - 2rem);
    }
}