/* =========================================
   LORDS MOBILITY - IEG LOGIN
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0048B8;
    --primary-dark: #00378f;
    --secondary: #2B8987;
    --white: #ffffff;
    --text: #172033;
    --muted: #6c7484;
    --border: #dfe5ed;
    --input-bg: #f8fafc;
    --error: #d93025;
    --success: #16834b;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #eef5ff 0%,
            #f8fbff 48%,
            #edf9f8 100%
        );

    color: var(--text);
}


/* =========================================
   PAGE
   ========================================= */

.login-page {
    position: relative;

    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    overflow: hidden;
}


/* =========================================
   BACKGROUND SHAPES
   ========================================= */

.bg-shape {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(2px);
}

.bg-shape-one {
    width: 420px;
    height: 420px;

    top: -190px;
    left: -150px;

    background: rgba(0, 72, 184, 0.08);
}

.bg-shape-two {
    width: 500px;
    height: 500px;

    right: -230px;
    bottom: -260px;

    background: rgba(43, 137, 135, 0.09);
}


/* =========================================
   LOGIN CARD
   ========================================= */

.login-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 455px;

    padding: 42px 42px 30px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(255, 255, 255, 0.8);

    border-radius: 22px;

    box-shadow:
        0 25px 70px rgba(24, 50, 90, 0.13),
        0 4px 18px rgba(24, 50, 90, 0.05);
}


/* =========================================
   LOGO
   ========================================= */

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 25px;
}

.logo {
    display: block;

    width: auto;
    max-width: 220px;
    max-height: 75px;

    object-fit: contain;
}


/* =========================================
   HEADER
   ========================================= */

.login-header {
    text-align: center;

    margin-bottom: 32px;
}

.portal-label {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--secondary);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.8px;
}

.login-header h1 {
    color: var(--text);

    font-size: 31px;
    line-height: 1.2;

    font-weight: 750;

    margin-bottom: 8px;
}

.login-header p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================
   FORM
   ========================================= */

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #293246;

    font-size: 13px;
    font-weight: 650;
}


/* =========================================
   INPUT
   ========================================= */

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
}

.input-wrapper input {
    width: 100%;
    height: 53px;

    padding: 0 48px 0 46px;

    background: var(--input-bg);

    border: 1px solid var(--border);

    border-radius: 11px;

    outline: none;

    color: var(--text);

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #9aa3b1;
}

.input-wrapper input:hover {
    border-color: #c9d2df;
}

.input-wrapper input:focus {
    background: var(--white);

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(0, 72, 184, 0.09);
}


/* =========================================
   INPUT ICON
   ========================================= */

.input-icon {
    position: absolute;

    left: 16px;

    width: 19px;
    height: 19px;

    color: #7b8798;

    pointer-events: none;

    z-index: 2;
}

.input-icon svg {
    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   PASSWORD TOGGLE
   ========================================= */

.password-toggle {
    position: absolute;

    right: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: 0;
    background: transparent;

    color: #7b8798;

    cursor: pointer;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);

    background: rgba(0, 72, 184, 0.06);
}

.password-toggle svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   ERROR
   ========================================= */

.error-message {
    display: block;

    min-height: 16px;

    margin-top: 5px;

    color: var(--error);

    font-size: 11px;
}

.input-error {
    border-color: var(--error) !important;

    box-shadow:
        0 0 0 3px rgba(217, 48, 37, 0.07) !important;
}


/* =========================================
   FORM OPTIONS
   ========================================= */

.form-options {
    display: flex;

    justify-content: flex-end;

    margin-top: -5px;
    margin-bottom: 22px;
}

.form-options a {
    color: var(--primary);

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.form-options a:hover {
    color: var(--primary-dark);

    text-decoration: underline;
}


/* =========================================
   LOGIN BUTTON
   ========================================= */

.login-button {
    position: relative;

    width: 100%;
    height: 53px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #1766cb
        );

    color: var(--white);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(0, 72, 184, 0.19);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 24px rgba(0, 72, 184, 0.25);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    cursor: not-allowed;

    opacity: 0.75;

    transform: none;
}

.button-loader {
    display: none;

    width: 18px;
    height: 18px;

    margin: auto;

    border: 2px solid rgba(255, 255, 255, 0.35);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.75s linear infinite;
}

.login-button.loading .button-text {
    display: none;
}

.login-button.loading .button-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================
   STATUS MESSAGE
   ========================================= */

.status-message {
    display: none;

    margin-top: 15px;
    padding: 11px 13px;

    border-radius: 8px;

    font-size: 12px;

    line-height: 1.45;

    text-align: center;
}

.status-message.show {
    display: block;
}

.status-message.info {
    color: #24558f;

    background: #eef6ff;

    border: 1px solid #d4e6fb;
}

.status-message.error {
    color: var(--error);

    background: #fff3f2;

    border: 1px solid #f4d0cd;
}

.status-message.success {
    color: var(--success);

    background: #effaf4;

    border: 1px solid #ccebd9;
}


/* =========================================
   FOOTER
   ========================================= */

.login-footer {
    margin-top: 29px;

    padding-top: 22px;

    border-top: 1px solid #edf0f4;

    text-align: center;
}

.security-note {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-bottom: 11px;

    color: #697487;

    font-size: 11px;
}

.security-icon {
    width: 16px;
    height: 16px;

    display: inline-flex;
}

.security-icon svg {
    width: 100%;
    height: 100%;

    fill: none;

    stroke: var(--secondary);

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-footer p {
    margin-bottom: 5px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 650;
}

.login-footer small {
    color: #9aa2ae;

    font-size: 10px;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 600px) {

    .login-page {
        padding: 25px 16px;
    }

    .login-card {
        max-width: 100%;

        padding: 34px 25px 25px;

        border-radius: 18px;
    }

    .logo {
        max-width: 190px;
        max-height: 65px;
    }

    .login-header h1 {
        font-size: 27px;
    }

    .login-header {
        margin-bottom: 27px;
    }
}


@media (max-width: 380px) {

    .login-page {
        padding: 18px 12px;
    }

    .login-card {
        padding: 29px 19px 22px;
    }

    .login-header h1 {
        font-size: 25px;
    }

    .input-wrapper input,
    .login-button {
        height: 50px;
    }
}