/* =========================================================
   BUSINESS MANAGEMENT SYSTEM
   PROFESSIONAL LOGIN PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f7f8fa;
    color: #171717;
}


/* =========================================================
   MAIN LOGIN PAGE
========================================================= */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
}


/* =========================================================
   LEFT VISUAL AREA
========================================================= */

.login-visual {
    position: relative;
    width: 55%;
    min-height: 100vh;

    background-image:
        url("../images/login.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    overflow: hidden;
}


/* Dark overlay */

.login-visual-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(7, 15, 23, 0.92) 0%,
            rgba(7, 15, 23, 0.70) 48%,
            rgba(7, 15, 23, 0.38) 100%
        );

    z-index: 1;
}


/* Subtle orange glow */

.login-visual::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    bottom: -180px;

    border-radius: 50%;

    background: rgba(240, 99, 36, 0.16);

    filter: blur(10px);

    z-index: 2;
}


/* =========================================================
   VISUAL CONTENT
========================================================= */

.visual-content {
    position: relative;

    z-index: 3;

    width: 100%;
    max-width: 650px;

    padding: 60px 70px;

    color: #ffffff;
}


/* Badge */

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.20);

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);

    border-radius: 50px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.2px;

    margin-bottom: 30px;
}

.badge-dot {
    width: 7px;
    height: 7px;

    background: #f06324;

    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(240, 99, 36, 0.15);
}


/* Heading */

.visual-content h1 {
    max-width: 600px;

    font-size: clamp(38px, 4vw, 62px);

    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.visual-content h1 span {
    display: block;

    color: #f06324;
}


/* Description */

.visual-content > p {
    max-width: 520px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 16px;

    line-height: 1.8;

    margin-bottom: 38px;
}


/* =========================================================
   FEATURES
========================================================= */

.visual-features {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.visual-feature {
    display: flex;
    align-items: center;

    gap: 14px;
}

.feature-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(240, 99, 36, 0.15);

    border: 1px solid rgba(240, 99, 36, 0.25);

    color: #f06324;

    font-size: 15px;
}

.visual-feature strong {
    display: block;

    color: #ffffff;

    font-size: 14px;

    margin-bottom: 3px;
}

.visual-feature span {
    display: block;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;
}


/* =========================================================
   VISUAL FOOTER
========================================================= */

.visual-footer {
    position: absolute;

    left: 70px;
    bottom: 30px;

    z-index: 4;

    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;
}


/* =========================================================
   RIGHT LOGIN PANEL
========================================================= */

.login-panel {
    width: 45%;
    min-height: 100vh;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;
}


/* Login content */

.login-container {
    width: 100%;
    max-width: 450px;

    animation: loginFade 0.6s ease;
}


/* =========================================================
   BRAND
========================================================= */

.login-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 48px;
}

.brand-mark {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #f06324;

    color: #ffffff;

    font-size: 18px;

    box-shadow:
        0 8px 20px rgba(240, 99, 36, 0.20);
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.brand-text strong {
    font-size: 16px;

    color: #151515;

    font-weight: 750;
}

.brand-text span {
    font-size: 11px;

    color: #8a8f98;

    margin-top: 4px;
}


/* =========================================================
   LOGIN HEADING
========================================================= */

.login-heading {
    margin-bottom: 30px;
}

.login-heading h2 {
    font-size: 32px;

    font-weight: 750;

    color: #151515;

    letter-spacing: -0.8px;

    margin-bottom: 9px;
}

.login-heading p {
    color: #858b95;

    font-size: 14px;

    line-height: 1.6;

    margin: 0;
}


/* =========================================================
   ERROR
========================================================= */

.login-error {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    margin-bottom: 22px;

    border-radius: 10px;

    background: #fff4f2;

    border: 1px solid #ffd8d0;

    color: #b53b26;

    font-size: 13px;
}

.error-icon {
    font-size: 15px;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    width: 100%;
}

.form-field {
    margin-bottom: 21px;
}

.form-field label {
    display: block;

    color: #34383e;

    font-size: 13px;

    font-weight: 650;

    margin-bottom: 8px;
}


/* =========================================================
   CUSTOM INPUT
========================================================= */

.custom-input {
    position: relative;

    width: 100%;

    height: 53px;

    display: flex;
    align-items: center;

    border: 1px solid #dfe2e7;

    border-radius: 11px;

    background: #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.custom-input > i {
    width: 48px;

    text-align: center;

    color: #9aa0a8;

    font-size: 14px;
}

.custom-input input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: #20242a;

    font-size: 14px;

    padding: 0 14px 0 0;
}

.custom-input input::placeholder {
    color: #b2b6bc;
}

.custom-input:focus-within {
    border-color: #f06324;

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(240, 99, 36, 0.09);
}

.custom-input:focus-within > i {
    color: #f06324;
}


/* =========================================================
   PASSWORD
========================================================= */

.password-input input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;

    right: 7px;

    width: 38px;
    height: 38px;

    border: none;

    background: transparent;

    color: #999fa7;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.2s ease;
}

.password-toggle:hover {
    color: #f06324;

    background: #fff4ef;
}


/* =========================================================
   LOGIN OPTIONS
========================================================= */

.login-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 5px;
    margin-bottom: 25px;
}

.remember-option {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #737981;

    font-size: 12px;

    cursor: pointer;
}

.remember-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    width: 16px;
    height: 16px;

    border: 1px solid #cfd3d8;

    border-radius: 4px;

    background: #ffffff;

    transition: 0.2s ease;

    position: relative;
}

.remember-option input:checked + .custom-checkbox {
    background: #f06324;

    border-color: #f06324;
}

.remember-option input:checked + .custom-checkbox::after {
    content: "✓";

    position: absolute;

    left: 3px;
    top: -1px;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
}

.forgot-link {
    color: #f06324;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

    transition: 0.2s ease;
}

.forgot-link:hover {
    color: #d94e16;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-btn {
    width: 100%;

    height: 54px;

    border: none;

    border-radius: 11px;

    background: #f06324;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(240, 99, 36, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-btn i {
    font-size: 13px;

    transition: transform 0.2s ease;
}

.login-btn:hover {
    background: #dd541a;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 14px 28px rgba(240, 99, 36, 0.25);
}

.login-btn:hover i {
    transform: translateX(3px);
}

.login-btn:active {
    transform: translateY(0);
}


/* =========================================================
   SECURITY MESSAGE
========================================================= */

.secure-login {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 25px;

    color: #a0a5ac;

    font-size: 11px;

    text-align: center;
}

.secure-login i {
    color: #74a87b;

    font-size: 12px;
}


/* =========================================================
   LOGIN FOOTER
========================================================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    margin-top: 45px;

    padding-top: 22px;

    border-top: 1px solid #eeeeee;

    color: #a0a4aa;

    font-size: 11px;
}

.login-footer strong {
    color: #60656d;

    font-weight: 650;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes loginFade {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .login-visual {
        width: 48%;
    }

    .login-panel {
        width: 52%;

        padding: 35px;
    }

    .visual-content {
        padding: 45px;
    }

    .visual-content h1 {
        font-size: 42px;
    }

    .visual-footer {
        left: 45px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .login-page {
        display: block;

        min-height: 100vh;

        overflow: auto;
    }


    /* Turn image into top visual banner */

    .login-visual {
        width: 100%;

        min-height: 270px;

        height: 270px;

        align-items: flex-end;
    }

    .login-visual-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(7, 15, 23, 0.30),
                rgba(7, 15, 23, 0.90)
            );
    }

    .visual-content {
        padding: 30px 25px 35px;
    }

    .visual-badge {
        margin-bottom: 12px;

        font-size: 9px;

        padding: 6px 10px;
    }

    .visual-content h1 {
        font-size: 28px;

        letter-spacing: -0.8px;

        margin-bottom: 8px;
    }

    .visual-content > p {
        display: none;
    }

    .visual-features {
        display: none;
    }

    .visual-footer {
        display: none;
    }


    /* Login panel */

    .login-panel {
        width: 100%;

        min-height: calc(100vh - 270px);

        padding: 35px 24px 30px;

        align-items: flex-start;
    }

    .login-container {
        max-width: 100%;
    }

    .login-brand {
        margin-bottom: 32px;
    }

    .login-heading h2 {
        font-size: 28px;
    }

    .login-footer {
        margin-top: 35px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .login-visual {
        height: 235px;

        min-height: 235px;
    }

    .visual-content {
        padding: 25px 20px 28px;
    }

    .visual-content h1 {
        font-size: 25px;
    }

    .login-panel {
        min-height: calc(100vh - 235px);

        padding: 30px 20px 25px;
    }

    .login-options {
        align-items: flex-start;
    }

    .forgot-link {
        font-size: 11px;
    }

}