/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bs-dark);
}

/* Branding Section */
.auth-branding {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image: url('../images/bg-login.jpg')!important;;
    overflow: hidden;
}

.branding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(48, 53, 52, 0.481);
    display: flex;
    justify-content: center;
    align-items: center;
}

.branding-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--bs-white);
    text-align: center;
    
    /* Center horizontally and vertically */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Optional: Add padding for better spacing */
    padding: 2rem;
    width: 90%; /* Makes it responsive on smaller screens */
}

.branding-content .logo {
    width: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(9, 174, 142, 0.5));
}

.branding-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--bs-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.branding-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.feature-item i {
    color: var(--bs-primary);
}

/* Form Section */
.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bs-dark-gradient);
}

.auth-form {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 16px;
    background: rgba(31, 36, 35, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 0 8px 32px 0 rgba(9, 174, 142, 0.1);
}

.avatar-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bs-primary);
    box-shadow: 0 0 20px rgba(9, 174, 142, 0.5);
}

.auth-form h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--bs-white);
}

.subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--bs-gray);
    font-size: 0.95rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--bs-white);
}

.input-group {
    position: relative;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    color: var(--bs-primary);
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bs-white);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(9, 174, 142, 0.25);
    color: var(--bs-white);
}

.toggle-password {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    color: var(--bs-gray);
}

.toggle-password:hover {
    color: var(--bs-primary);
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Referral Options */
.referral-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.referral-options .form-check {
    flex: 1;
}

.referral-options .form-check-label {
    display: block;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.referral-options .form-check-input {
    display: none;
}

.referral-options .form-check-input:checked + .form-check-label {
    background: rgba(9, 174, 142, 0.2);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

/* Social Login */
.social-login {
    margin: 1.5rem 0;
}

.divider {
    display: flex;
    align-items: center;
    color: var(--bs-gray);
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-buttons .btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--bs-gray);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.forgot-password, .resend-otp {
    color: var(--bs-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover, .resend-otp:hover {
    text-decoration: underline;
}

.resend-otp {
    pointer-events: none;
    opacity: 0.5;
}

.resend-otp.active {
    pointer-events: auto;
    opacity: 1;
}

.timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-gray);
    font-size: 0.9rem;
}

.timer i {
    color: var(--bs-primary);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-branding {
        min-height: 300px;
    }
    
    .branding-content {
        max-width: 100%;
    }
    
    .auth-form-container {
        padding: 2rem 1rem;
    }
    
    .auth-form {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .auth-form {
        padding: 1.5rem;
    }
    
    .branding-content h1 {
        font-size: 2rem;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
    
    .otp-input {
        width: 40px;
        height: 50px;
    }
    
    .referral-options {
        flex-direction: column;
        gap: 0.75rem;
    }
}