.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    background-color: var(--bg-gray);
    display: flex;
    flex-direction: column;
    padding: 40px;
    position: relative;
}

.auth-logo {
    margin-top: 60px;
    margin-bottom: 60px;
}

.auth-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-image img {
    max-width: 80%;
    height: auto;
}

.auth-image .floating-card {
    position: absolute;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
    bottom: 20%;
    right: 15%;
}

.auth-image .floating-card i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.auth-image .floating-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
}

.auth-form-container h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-form-container > p {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-icon i:first-child {
    left: 15px;
}

.input-icon .toggle-password {
    right: 15px;
    cursor: pointer;
}

.input-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 119, 181, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.terms-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.terms-checkbox label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terms-checkbox a {
    color: var(--primary-color);
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 10px;
}

.strength-meter {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.strength-meter span {
    flex: 1;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    transition: var(--transition);
}

.strength-meter.weak span:nth-child(1) {
    background-color: var(--error-color);
}

.strength-meter.medium span:nth-child(1),
.strength-meter.medium span:nth-child(2) {
    background-color: var(--warning-color);
}

.strength-meter.strong span:nth-child(1),
.strength-meter.strong span:nth-child(2),
.strength-meter.strong span:nth-child(3) {
    background-color: var(--success-color);
}

.strength-meter.very-strong span {
    background-color: var(--success-color);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.strength-text span {
    font-weight: 500;
}

.strength-text span.weak {
    color: var(--error-color);
}

.strength-text span.medium {
    color: var(--warning-color);
}

.strength-text span.strong,
.strength-text span.very-strong {
    color: var(--success-color);
}

/* OTP Form Styles */
.otp-form {
    text-align: center;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.otp-inputs input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.otp-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 119, 181, 0.2);
}

.otp-timer {
    margin-bottom: 30px;
}

.otp-timer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.otp-timer #timer {
    font-weight: 600;
    color: var(--primary-color);
}

.resend-otp {
    margin-top: 20px;
}

.resend-otp p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.resend-otp a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .auth-form-container h1 {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .otp-inputs {
        gap: 5px;
    }
    
    .otp-inputs input {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.home-btn:hover {
    color: var(--primary-light);
}

/* Loading Spinner */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dark-theme .loader-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-gray);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* Success Message */
.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 1001;
    display: none;
    width: 90%;
    max-width: 400px;
}

.dark-theme .success-popup {
    background: var(--bg-dark);
    color: white;
}

.success-popup .success-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-popup .success-icon i {
    font-size: 35px;
    color: white;
}

.success-popup h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.success-popup p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.success-popup .redirect-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Disable form during submission */
.form-disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* Back to Home Button */
.back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 1000;
}

.dark-theme .back-home {
    background-color: #1a1a1a;
    border-color: #333333;
    color: #ffffff;
}

.back-home:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dark-theme .back-home:hover {
    background-color: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

.back-home i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.back-home:hover i {
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .back-home {
        top: 15px;
        left: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Form Error Styles */
.error-text {
    color: #ff3b30;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 17px;
}

.form-group input.error {
    border-color: #ff3b30;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.2);
} 