
:root {
    --brand-navy: #243c78;
    --brand-blue: #3558a4;
    --brand-teal: #20b8b5;
    --brand-teal-dark: #159b9b;
    --text-dark: #202b45;
    --text-muted: #788397;
    --border-color: #e3e9f1;
    --surface: #ffffff;
    --page-bg: #f3f7fb;
}

/* ===== GLOBAL ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background: var(--page-bg);
}

/* ===== MAIN WRAPPER ===== */

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(32, 184, 181, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(53, 88, 164, 0.10),
            transparent 35%
        ),
        #f3f7fb;
}

/* ===== MAIN LOGIN CARD ===== */

.login-container {
    width: 100%;
    max-width: 1120px;
    min-height: 650px;
    height: auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    overflow: hidden;
    margin: auto;
    background: var(--surface);
    border-radius: 22px;
    box-shadow: 0 25px 75px rgba(36, 60, 120, 0.13);
}

/* ===== LEFT BRANDING PANEL ===== */

.login-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 650px;
    padding: 40px 38px 25px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(32, 184, 181, 0.30),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #243c78 0%,
            #304f91 55%,
            #167f91 100%
        );
}

.login-left::before,
.login-left::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    pointer-events: none;
}

.login-left::before {
    width: 320px;
    height: 320px;
    right: -150px;
    top: 100px;
}

.login-left::after {
    width: 240px;
    height: 240px;
    right: -100px;
    top: 140px;
}

/* ===== BRAND CONTENT ===== */

.brand-content {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

/* ===== LOGO ===== */

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 30px;
    padding: 14px 20px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.brand-logo img {
    display: block;
    width: 155px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===== BRAND HEADING ===== */

.brand-title {
    margin: 0 0 16px;
    font-size: 36px;
    font-weight: 750;
    letter-spacing: 1px;
    line-height: 1.25;
    color: #ffffff;
}

.brand-title span {
    display: block;
    margin-top: 5px;
    color: #58ded5;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
}

.brand-description {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.9;
}

/* ===== FEATURE LIST ===== */

.feature-list {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
}

.feature-icon {
    width: 38px;
    height: 38px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    color: #6ce2d8;
    background: rgba(255, 255, 255, 0.09);
    font-size: 16px;
}

/* ===== COPYRIGHT ===== */

.copyright {
    position: relative;
    z-index: 2;
    display: block;
    flex-shrink: 0;
    margin-top: 25px;
    padding-top: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    visibility: visible;
    opacity: 1;
}

/* ===== RIGHT LOGIN PANEL ===== */

.login-right {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 50px;
    background: #ffffff;
}

.login-form-container {
    width: 100%;
    max-width: 390px;
    min-width: 0;
}

/* ===== LOGIN HEADING ===== */

.login-heading {
    margin-bottom: 34px;
}

.welcome-label {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--brand-teal-dark);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 2.5px;
}

.login-heading h2 {
    margin: 0 0 12px;
    color: var(--brand-navy);
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -0.7px;
    line-height: 1.3;
}

.login-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* ===== FORM FIELDS ===== */

.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    color: #34415a;
    font-size: 12px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c99ad;
    font-size: 15px;
    pointer-events: none;
}

.login-input {
    display: block;
    width: 100%;
    height: 51px;
    padding: 0 46px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    color: var(--text-dark);
    background: #fbfcfe;
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.login-input::placeholder {
    color: #a4adbc;
}

.login-input:focus {
    border-color: var(--brand-teal);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(32, 184, 181, 0.10);
}

.login-input.is-invalid {
    border-color: #dc3545;
}

/* ===== PASSWORD TOGGLE ===== */

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    border: 0;
    padding: 6px;
    color: #8c99ad;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--brand-teal-dark);
}

/* ===== LOGIN OPTIONS ===== */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 3px 0 25px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #69758a;
    font-size: 12px;
    cursor: pointer;
}

.remember-label input {
    width: 15px;
    height: 15px;
    accent-color: var(--brand-teal-dark);
}

/* ===== SIGN IN BUTTON ===== */

.login-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(
        110deg,
        var(--brand-navy),
        var(--brand-blue) 55%,
        var(--brand-teal-dark)
    );
    box-shadow: 0 8px 18px rgba(36, 60, 120, 0.18);
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(36, 60, 120, 0.24);
}

.login-button:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

/* ===== SECURITY INFORMATION ===== */

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    color: #8491a5;
    font-size: 11px;
    text-align: center;
}

.security-info i {
    color: var(--brand-teal-dark);
}

/* ===== ALERTS AND VALIDATION ===== */

.login-alert {
    margin-bottom: 20px;
    border-radius: 9px;
    font-size: 13px;
}

.error-message {
    margin-top: 7px;
    color: #dc3545;
    font-size: 12px;
}

/* ===== TABLET ===== */

@media (max-width: 900px) {
    .login-wrapper {
        padding: 20px;
    }

    .login-container {
        max-width: 650px;
        min-height: 0;
        height: auto;
        grid-template-columns: 1fr;
    }

    .login-left {
        min-height: 0;
        height: auto;
        padding: 30px 35px 20px;
    }

    .brand-logo {
        margin-bottom: 22px;
    }

    .brand-logo img {
        width: 125px;
    }

    .brand-title {
        font-size: 29px;
    }

    .brand-description {
        max-width: 100%;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }

    .copyright {
        margin-top: 25px;
        padding-top: 15px;
    }

    .login-right {
        padding: 40px 35px;
    }
}

/* ===== MOBILE ===== */

@media (max-width: 480px) {
    .login-wrapper {
        padding: 12px;
    }

    .login-container {
        border-radius: 15px;
    }

    .login-left {
        padding: 25px 22px 18px;
    }

    .brand-logo {
        margin-bottom: 18px;
        padding: 10px 15px;
    }

    .brand-title {
        font-size: 25px;
    }

    .brand-title span {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .brand-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .feature-list {
        gap: 10px;
        margin-top: 20px;
    }

    .feature-item {
        gap: 10px;
        font-size: 12px;
    }

    .feature-icon {
        width: 34px;
        height: 34px;
    }

    .copyright {
        margin-top: 20px;
        padding-top: 12px;
        font-size: 10px;
    }

    .login-right {
        padding: 30px 22px;
    }

    .login-heading {
        margin-bottom: 25px;
    }

    .login-heading h2 {
        font-size: 25px;
    }

    .login-field {
        margin-bottom: 18px;
    }

    .login-options {
        gap: 10px;
        margin-bottom: 20px;
    }

    .security-info {
        margin-top: 20px;
    }
}

/* ===== SHORT DESKTOP SCREENS ===== */

@media (min-width: 901px) and (max-height: 750px) {
    .login-wrapper {
        align-items: flex-start;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .login-container {
        min-height: 0;
        height: auto;
    }

    .login-left {
        min-height: 0;
        padding: 25px 30px 20px;
    }

    .brand-logo {
        margin-bottom: 18px;
        padding: 10px 15px;
    }

    .brand-logo img {
        width: 135px;
    }

    .brand-title {
        font-size: 30px;
    }

    .brand-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .feature-list {
        gap: 10px;
        margin-top: 18px;
    }

    .feature-icon {
        width: 34px;
        height: 34px;
    }

    .copyright {
        margin-top: 18px;
        padding-top: 10px;
    }

    .login-right {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .login-heading {
        margin-bottom: 24px;
    }

    .login-field {
        margin-bottom: 16px;
    }

    .login-options {
        margin-bottom: 18px;
    }

    .security-info {
        margin-top: 18px;
    }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    .login-input,
    .login-button {
        transition: none;
    }

    .login-button:hover {
        transform: none;
    }
}
