/* Premium Styles for User Login & Signup pages */
.auth-section {
    background-color: #f8fafc;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.auth-card {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(17, 15, 15, 0.04), 0 1px 3px rgba(17, 15, 15, 0.02);
    border: 1px solid #e2e8f0;
    padding: 45px;
    width: 100%;
    max-width: 520px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(17, 15, 15, 0.07);
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black-color, #110F0F);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 30px;
}

/* Custom Forms */
.auth-form-group {
    margin-bottom: 22px;
    text-align: left;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--black-color, #110F0F);
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
}

.auth-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    color: var(--black-color, #110F0F);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-control:focus {
    border-color: var(--primary-color1, #fe5100);
    box-shadow: 0 0 0 4px rgba(var(--primary-color1-opc, 254, 81, 0), 0.12);
}

.auth-control.password-input {
    padding-right: 48px;
}

.password-toggle-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.password-toggle-icon:hover {
    color: var(--primary-color1, #fe5100);
}

/* Checkbox & Options */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 25px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color1, #fe5100);
    border-radius: 4px;
    cursor: pointer;
}

.auth-link {
    color: var(--primary-color1, #fe5100);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-color2, #d85d0b);
    text-decoration: underline;
}

/* Buttons */
.auth-btn-primary {
    width: 100%;
    background-color: var(--primary-color1, #fe5100);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--primary-color1-opc, 254, 81, 0), 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.auth-btn-primary:hover {
    background-color: var(--primary-color2, #d85d0b);
    box-shadow: 0 6px 18px rgba(var(--primary-color1-opc, 254, 81, 0), 0.35);
    transform: translateY(-1px);
}

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

/* Social Logins */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #f1f5f9;
}

.auth-divider:not(:empty)::before {
    margin-right: .75em;
}

.auth-divider:not(:empty)::after {
    margin-left: .75em;
}

.social-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* Footer Link */
.auth-footer-text {
    font-size: 14px;
    color: #64748b;
    margin-top: 25px;
    text-align: center;
}

/* Input feedback */
.form-feedback {
    font-size: 12px;
    font-weight: 500;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}

/* Responsive */
@media (max-width: 575px) {
    .auth-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .auth-header h2 {
        font-size: 24px;
    }
}

/* Custom Auth Layout Wrapper */
.auth-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8fafc;
}

.auth-left-pane {
    display: none;
}

.auth-right-pane {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.auth-right-header {
    display: none;
}

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

.auth-right-footer {
    display: none;
}

/* Custom layout for Terms checkbox page-feedback */
.auth-terms-group {
    position: relative;
    margin-bottom: 30px !important;
}

.auth-terms-group #termsFeedback {
    position: absolute;
    top: 24px;
    left: 0;
    margin-top: 0;
}

/* Desktop Styles */
@media (min-width: 992px) {
    /* Hide global site navigation and footer */
    body.auth-page .topbar-area,
    body.auth-page header.style-1,
    body.auth-page footer.footer-section,
    body.auth-page .breadcrumb-section,
    body.auth-page #magic-cursor {
        display: none !important;
    }

    body.auth-page {
        overflow: hidden !important;
    }

    .auth-wrapper {
        flex-direction: row;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    .auth-left-pane {
        display: flex;
        flex-direction: column;
        width: 48%;
        background-size: cover;
        background-position: center;
        padding: 60px;
        position: relative;
        color: #ffffff;
    }

    .auth-left-pane::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(17, 15, 15, 0.4) 0%, rgba(17, 15, 15, 0.75) 100%);
        z-index: 1;
    }

    .auth-left-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        z-index: 2;
    }

    .auth-brand-logo img {
        height: 48px;
        width: auto;
    }

    .auth-promo-text {
        margin: auto 0;
    }

    .auth-promo-text h1 {
        font-size: 38px;
        font-weight: 800;
        line-height: 1.25;
        color: #ffffff;
        margin-bottom: 20px;
    }

    .auth-promo-text p {
        font-size: 16px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
        max-width: 460px;
        margin: 0;
    }

    .auth-left-footer p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
    }

    .auth-right-pane {
        flex: 1;
        height: 100vh;
        overflow-y: auto;
        padding: 40px 60px;
        background-color: #ffffff;
    }

    /* Show inner header and footer on desktop */
    .auth-right-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 0 20px 0;
        border-bottom: 1.5px solid #f1f5f9;
        margin-bottom: 20px;
    }

    .auth-right-content-wrapper {
        padding: 10px 0;
    }

    .auth-card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        max-width: 440px;
        margin: 0 auto;
        text-align: left !important;
    }

    .auth-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .auth-header h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .auth-header p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .auth-right-footer {
        display: flex !important;
        justify-content: center;
        gap: 15px;
        font-size: 13px;
        color: #64748b;
        padding: 20px 0 0 0;
        border-top: 1.5px solid #f1f5f9;
        margin-top: auto;
    }

    /* Compact inputs for desktop split screen */
    .auth-form-group {
        margin-bottom: 16px;
    }

    .auth-form-group label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .auth-control {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .auth-control.password-input {
        padding-right: 42px;
    }

    .password-toggle-icon {
        right: 14px;
        font-size: 16px;
    }

    .auth-options {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .auth-btn-primary {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 8px;
    }

    .auth-footer-text {
        display: none; /* Handled by header sign up/log in link */
    }
}