/* ========================= Auth Pages CSS Start ========================= */
/* Modern Login/Register Split Screen Design */

.auth-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: hsl(var(--white));
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 300px);
    /* Adjusted for footer */
}

/* Left Side - Form Section */
.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px 123px;
    background-color: hsl(var(--white));
    position: relative;
    overflow-y: auto;
    z-index: 1;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.auth-brand {
    margin-bottom: 87px;
    text-align: left;
}

.auth-brand img {
    max-width: 222px;
    height: auto;
}

.auth-heading {
    font-size: 48px;
    font-weight: 700;
    color: hsl(var(--dark));
    margin-bottom: 12px;
    line-height: 1.2;
}

.auth-subheading {
    font-size: 0.9375rem;
    color: hsl(var(--text));
    margin-bottom: 32px;
    font-weight: 400;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--dark));
    margin-bottom: 8px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.9375rem;
    border: 1.5px solid hsl(var(--border-color));
    border-radius: 10px;
    background-color: hsl(var(--white));
    color: hsl(var(--dark));
    transition: all 0.3s ease;
    font-family: var(--body-font);
    height: 60px;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: hsl(var(--base));
    box-shadow: 0 0 0 4px hsl(var(--base) / 0.1);
}

.auth-form input::placeholder {
    color: hsl(var(--text) / 0.5);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: hsl(var(--text));
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: hsl(var(--base));
}

/* Remember & Forgot Password */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

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

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: hsl(var(--base));
}

.remember-me label {
    font-size: 0.875rem;
    color: hsl(var(--text));
    margin: 0;
    cursor: pointer;
}

.forgot-password {
    font-size: 0.875rem;
    color: hsl(var(--base));
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: hsl(var(--base-d-200));
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: #FF4D00;
    color: hsl(var(--white));
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px hsl(var(--base) / 0.3);
    margin-bottom: 20px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(var(--base) / 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 18px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: hsl(var(--border-color));
}

.auth-divider span {
    position: relative;
    background-color: hsl(var(--white));
    padding: 0 16px;
    font-size: 0.875rem;
    color: hsl(var(--text) / 0.6);
    font-weight: 500;
}

/* Social Login Buttons */
.social-login-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1.5px solid hsl(var(--border-color));
    border-radius: 10px;
    background-color: hsl(var(--white));
    color: hsl(var(--dark));
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-login-btn:hover {
    border-color: hsl(var(--base));
    background-color: hsl(var(--base) / 0.02);
    color: hsl(var(--dark));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(var(--black) / 0.08);
}

.social-login-btn img {
    width: 20px;
    height: 20px;
}

/* Account Switch */
.auth-switch {
    text-align: center;
    font-size: 0.9375rem;
    color: hsl(var(--text));
}

.auth-switch a {
    color: hsl(var(--base));
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: hsl(var(--base-d-200));
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    color: hsl(var(--text) / 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    color: hsl(var(--text));
    transform: translateX(-3px);
}

.back-link i {
    font-size: 1.125rem;
}


/* Right Side - Image Section */
.auth-image-section {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decorative Elements */
.auth-image-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: hsl(var(--white) / 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.auth-image-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: hsl(var(--white) / 0.05);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(20px);
    }
}

/* Responsive Design */
@media screen and (max-width: 991px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-image-section {
        display: none;
    }

    .auth-form-section {
        flex: 1;
        padding: 30px 20px;
    }

    .auth-heading {
        font-size: 1.875rem;
    }
}

@media screen and (max-width: 575px) {
    .auth-form-section {
        padding: 20px 16px;
    }

    .auth-heading {
        font-size: 1.625rem;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }

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

    .social-login-btns {
        gap: 10px;
    }
}

/* Loading State */
.auth-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid hsl(var(--white) / 0.3);
    border-radius: 50%;
    border-top-color: hsl(var(--white));
    animation: spin 0.6s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

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

/* Form Validation Styles */
.auth-form input.error {
    border-color: hsl(var(--danger));
}

.auth-form .error-message {
    color: hsl(var(--danger));
    font-size: 0.8125rem;
    margin-top: 6px;
    display: block;
}

/* ========================= Auth Pages CSS End ========================= */