/* ==========================================================================
   LOGIN PAGE STYLES - FULL SCREEN LAYOUT (login.css)
   ========================================================================== */

html,
body.login-page-body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.login-page-body {
    min-height: 100vh;
    width: 100vw;
    background: #ffffff;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.auth-wrapper {
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    border: none;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------------------------------
   LEFT HERO PANEL (FULL HEIGHT 50% WIDTH)
   -------------------------------------------------------------------------- */
.auth-hero {
    width: 50%;
    min-height: 100vh;
    background: linear-gradient(180deg, #ebf4ff 0%, #d8eafe 100%);
    padding: 50px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    border-right: 1px solid #dce8f8;
    box-sizing: border-box;
}

.auth-hero__logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.auth-hero__logo:hover {
    transform: scale(1.03);
}

.auth-hero__illustration {
    max-width: 85%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto 0;
    filter: drop-shadow(0 10px 24px rgba(9, 27, 87, 0.06));
}

.auth-hero__footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
    max-width: 360px;
}

.auth-hero__footer-text strong {
    color: var(--Light-Primary-50, #3BAEFF);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   RIGHT FORM CARD (FULL HEIGHT 50% WIDTH)
   -------------------------------------------------------------------------- */
.auth-card {
    width: 50%;
    min-height: 100vh;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    box-sizing: border-box;
}

.auth-card__inner {
    width: 100%;
    max-width: 440px;
    margin: auto 0;
}

.auth-card__title {
    font-size: 28px;
    font-weight: 500;
    color: #0c1e40;
    text-align: center;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.auth-card__subtitle {
    font-size: 14px;
    color: #718096;
    text-align: center;
    margin: 0 0 34px 0;
    font-weight: 400;
}

/* Form Controls */
.auth-card .form-box {
    margin-bottom: 22px;
}

.auth-card .form-box label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: #0c1e40;
    margin-bottom: 8px;
}

.auth-card .form-box label span {
    color: #ff3b30;
    margin-left: 2px;
}

.auth-card .form-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-card .c-form-border {
    border: 1.5px solid #dce8f5;
    border-radius: 100px;
    background: #ffffff;
    transition: all 0.3s ease;
    padding: 0 18px 0 46px;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
}

.auth-card .c-form-border:focus-within {
    border-color: var(--Light-Primary-50, #3BAEFF);
    box-shadow: 0 0 0 3.5px rgba(59, 174, 255, 0.15);
}

.auth-card .form-icon-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.auth-card .c_input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    padding: 0;
}

.auth-card .c_input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.auth-card .togglePassword {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    z-index: 5;
    transition: color 0.2s ease;
}

.auth-card .togglePassword:hover {
    color: var(--Light-Primary-50, #3BAEFF);
}

/* Custom Checkbox */
.auth-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.auth-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.custom-checkbox i {
    color: #ffffff;
    font-size: 11px;
    display: none;
}

.auth-checkbox-label input[type="checkbox"]:checked~.custom-checkbox {
    background-color: var(--Light-Primary-50, #3BAEFF);
    border-color: var(--Light-Primary-50, #3BAEFF);
}

.auth-checkbox-label input[type="checkbox"]:checked~.custom-checkbox i {
    display: block;
}

.auth-checkbox-label:hover .custom-checkbox {
    border-color: var(--Light-Primary-50, #3BAEFF);
}

/* Primary Button */
.auth-btn-primary {
    width: 100% !important;
    height: 50px !important;
    border-radius: 100px !important;
    background-color: var(--Light-Primary-50, #3BAEFF) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500;
    border: none !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
    /* box-shadow: 0 6px 18px rgba(59, 174, 255, 0.3) !important; */
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

.auth-btn-primary:hover {
    background-color: #2795e6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(59, 174, 255, 0.4) !important;
}

/* Forgot Password Link Wrapper */
.auth-forgot-wrap {
    text-align: right;
    margin-bottom: 24px;
    margin-top: 4px;
}

.auth-forgot-link {
    font-size: 13.5px;
    font-weight: 300;
    color: var(--Light-Primary-50, #3BAEFF);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-forgot-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Security Note Card */
.auth-security-note {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 20px;
}

.auth-security-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-security-note strong {
    color: #334155;
    font-weight: 700;
}

/* Forgot Password View Styles */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 300;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: var(--Light-Primary-50, #3BAEFF);
}

.auth-forgot__title {
    font-size: 32px;
    font-weight: 600;
    color: #0c1e40;
    margin: 0 0 14px 0;
    line-height: 1.25;
}

.auth-forgot__subtitle {
    font-size: 14.5px;
    line-height: 1.65;
    color: #64748b;
    margin: 0 0 32px 0;
    font-weight: 300;
}

/* --------------------------------------------------------------------------
   RESPONSIVE (login.css)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
    .auth-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .auth-hero {
        width: 100%;
        min-height: auto;
        padding: 40px 24px;
        border-right: none;
        border-bottom: 1px solid #dce8f8;
    }

    .auth-hero__illustration {
        max-height: 220px;
        margin: 24px 0;
    }

    .auth-card {
        width: 100%;
        min-height: auto;
        padding: 40px 24px;
    }
}