/* ============================================================
   Melioris HRMS – Login Page Revamp
   ============================================================ */

/* ==========================================================
   BASE: No alerts — fully centered, zero scroll
   ========================================================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
}

.lp-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #eef0f5;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

/* lp-page-alerts is always rendered but invisible when empty */
.lp-page-alerts {
    width: 60%;
    max-width: 860px;
    flex-shrink: 0;
}

.lp-page-alerts:empty {
    display: none;
    margin: 0;
}

.lp-page-alerts .alert {
    font-size: 13px;
    border-radius: 8px;
    margin-bottom: 6px;
}

/* ==========================================================
   ALERT MODE: body.lp-has-alerts — scrollable page
   ========================================================== */
body.lp-has-alerts {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

body.lp-has-alerts .lp-wrapper {
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow: visible;
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 40px;
}

body.lp-has-alerts .lp-page-alerts {
    margin-bottom: 16px;
}

body.lp-has-alerts .lp-container {
    max-height: none;
    flex-shrink: 0;
}

/* ==========================================================
   Split-screen container
   ========================================================== */
.lp-container {
    display: flex;
    width: 60%;
    max-width: 860px;
    max-height: calc(100vh - 48px); /* 48px = top+bottom wrapper padding */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}


/* ---------- Left branding panel ---------- */
.lp-left {
    flex: 0 0 35%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 22%),
                radial-gradient(circle at bottom right, rgba(231, 198, 106, 0.12), transparent 20%),
                linear-gradient(145deg, #132752 0%, #172d5b 55%, #1d376d 100%);
    color: #fff;
    padding: 40px 40px 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* decorative circles */
.lp-left::before,
.lp-left::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    background: #ffffff;
}

.lp-left::before {
    width: 380px;
    height: 380px;
    bottom: -120px;
    right: -100px;
}

.lp-left::after {
    width: 220px;
    height: 220px;
    top: -60px;
    right: 40px;
}

/* logo row */
.lp-logo-row {
    /*    display: flex;
    align-items: center;
    gap: 12px;*/
    color: #d1a636;
    font-size: 14px;
    margin-bottom: 16px;
    margin-top: 60px;
    flex-shrink: 0;
}

.lp-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(180deg, #f3d981, #e7c66a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #0d1b3e;
    flex-shrink: 0;
    overflow: hidden;
}

.lp-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lp-logo-letter {
    font-size: 30px;
    font-weight: 900;
    color: #132752;
    line-height: 1;
    letter-spacing: -1px;
    user-select: none;
}

.lp-logo-text strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.lp-logo-text span {
    font-size: 11px;
    color: #a8b8d8;
    letter-spacing: 0.5px;
}

/* quote — vertically centered in left panel */
.lp-quote {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-style: italic;
    color: #c2cedf;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    padding-bottom: 16px;
}

.lp-quote .carousel {
    width: 100%;
}

/* Prevent carousel from collapsing during slide transitions */
.lp-quote .carousel-inner {
    min-height: 60px;
}

.lp-quote .carousel-item {
    line-height: 1.7;
    color: #fff;
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ---------- Right form panel ---------- */
.lp-right {
    flex: 0 0 65%;
    background: #fff;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.lp-right form,
.lp-right > *:not(.lp-footer) {
    width: 100%;
    max-width: 440px;
}

.lp-right .lp-footer {
    width: 100%;
    max-width: 440px;
}

/* alerts area at top of right panel */
.lp-alerts {
    margin-bottom: 8px;
}

.lp-alerts .alert {
    font-size: 13px;
    border-radius: 8px;
}

/* company logo */
.lp-company-logo {
    margin-bottom: 16px;
    text-align: left;
}

/* form header */
.lp-form-header {
    margin-bottom: 18px;
}

.lp-form-title {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.15;
}

.lp-form-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* field labels */
.lp-field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #374151;
    margin-bottom: 6px;
}

/* input wrapper with icon */
.lp-input-group {
    position: relative;
    margin-bottom: 16px;
}

.lp-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
}

.lp-input-group .lp-form-control {
    width: 100%;
    height: 46px;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.lp-input-group .lp-form-control:focus {
    border-color: #1a2f6e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 47, 110, 0.1);
}

/* password toggle icon */
.lp-pw-toggle {
    position: absolute;
    right: 14px;
    top: 0;
    margin: auto 0;
    height: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #9ca3af;
    font-size: 15px;
    line-height: 1;
}

.lp-pw-toggle:hover {
    color: #374151;
}

/* options row: remember me + forgot password */
.lp-options-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.lp-remember-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #374151;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    margin: 0;
}

.lp-remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a2f6e;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.lp-forgot-link {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 13.5px;
    color: #d1a636;
    font-weight: 600;
    text-decoration: none;
}

.lp-forgot-link:hover {
    text-decoration: underline;
    color: #b8892a;
}

/* primary sign-in button */
.lp-btn-signin {
    width: 100%;
    height: 46px;
    background: linear-gradient(180deg, var(--navy, #0d1b3e), #1f376b);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-bottom: 16px;
}

.lp-btn-signin:hover {
    opacity: 0.9;
}

.lp-btn-signin:active {
    transform: scale(0.99);
}

/* divider */
.lp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 14px;
}

.lp-divider::before,
.lp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* SSO / Google / Singpass buttons */
.lp-btn-sso {
    width: 100%;
    height: 44px;
    background: #fff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
    margin-bottom: 10px;
}

.lp-btn-sso:hover {
    border-color: #1a2f6e;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
}

.lp-btn-sso img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* SSO links row (terms / privacy) */
.lp-sso-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 11px;
    margin-top: 6px;
    margin-bottom: 10px;
}

.lp-sso-links a {
    color: #9ca3af;
    text-decoration: none;
}

.lp-sso-links a:hover {
    text-decoration: underline;
    color: #6b7280;
}

/* footer version */
.lp-footer {
    text-align: center;
    font-size: 11.5px;
    color: #9ca3af;
    margin-top: 12px;
}

/* validation summary */
.lp-right .validation-summary-errors,
.lp-right .validation-summary-valid {
    font-size: 13px;
    margin-bottom: 12px;
}

/* ============================================================
   Responsive
   ============================================================ */

/* -- Medium desktop -- */
@media (max-width: 1200px) {
    .lp-container,
    .lp-page-alerts {
        width: 75%;
    }
}

@media (max-width: 1000px) {
    .lp-container,
    .lp-page-alerts {
        width: 88%;
    }
}

/* -- Tablet / Mobile (≤768px) --
   Hide branding panel; show only login form, full-width
   Always scrollable on small screens
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto !important;
        height: auto !important;
    }

    .lp-wrapper {
        height: auto !important;
        min-height: 100vh;
        max-height: none !important;
        overflow: visible !important;
        justify-content: center;
        padding: 24px 12px;
    }

    .lp-page-alerts {
        width: 100%;
        margin-bottom: 16px;
    }

    .lp-container {
        width: 100%;
        max-width: 480px;
        max-height: none !important;
        border-radius: 12px;
        /* Single column — only form panel visible */
        flex-direction: column;
    }

    /* Hide branding panel entirely on mobile */
    .lp-left {
        display: none !important;
    }

    /* Form panel takes full width */
    .lp-right {
        flex: none;
        width: 100%;
        padding: 32px 24px;
        overflow: visible;
        justify-content: flex-start;
        align-items: stretch;
    }

    .lp-right form,
    .lp-right > *:not(.lp-footer) {
        max-width: 100%;
    }

    .lp-right .lp-footer {
        max-width: 100%;
    }

    .lp-form-title {
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    .lp-container {
        border-radius: 8px;
    }

    .lp-right {
        padding: 24px 16px;
    }
}

.powered-by {
    font-style: italic;
}

.vendor-name {
    font-weight: 600;
}