* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* =========================
   PAGE LAYOUT
   ========================= */

.login-page {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* =========================
   LEFT SIDE
   ========================= */

.login-left {
    width: 50%;
    position: relative;
    background: url('../images/aircon.webp') center / cover no-repeat;
}

.login-left .overlay {
    width: 100%;
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background: linear-gradient(to right, transparent, #000);
}

.small-title {
    margin-bottom: 15px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 3px;
    text-decoration: none;
}

.login-left h1 {
    margin-bottom: 20px;
    font-size: 42px;
    line-height: 1.2;
}

.description {
    max-width: 500px;
    color: #ddd;
    font-size: 17px;
    line-height: 1.7;
}

.home:hover {
    color: #285a48;
    opacity: 0.8;
    transition: 0.3s ease;
}

/* =========================
   RIGHT SIDE
   ========================= */

.login-right {
    width: 50%;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

/* =========================
   LOGIN BOX
   ========================= */

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 10px 10px 20px rgba(186, 186, 186, 0.749);
    margin-bottom: 90px;
}

.login-box h2 {
    margin-bottom: 10px;
    color: #111;
    font-size: 30px;
}

.subtitle {
    margin-bottom: 30px;
    color: #666;
    font-size: 15px;
}

/* =========================
   FORM
   ========================= */

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #222;
    font-size: 14px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.input-group input:focus {
    border-color: #000;
}

/* =========================
   PASSWORD
   ========================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 70px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.toggle-password:hover {
    text-decoration: underline;
}

/* =========================
   FORM OPTIONS
   ========================= */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   BUTTON
   ========================= */

.login-btn {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #285a48;
}

/* =========================
   LINKS
   ========================= */

.form-options a,
.register-text a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.form-options a:hover,
.register-text a:hover {
    text-decoration: underline;
}

.register-text {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* =========================
   ALERT
   ========================= */

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.alert.error {
    background: #fdeaea;
    color: #8b1e1e;
    border: 1px solid #efc2c2;
}

/* =========================
   PAGE LOADER
   ========================= */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f2f2f2;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    width: 380px;
    max-width: 90%;
}

.loader-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.loader-logo {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    color: #fff;
    border-radius: 10px;
    font-size: 26px;
    font-weight: bold;
}

.loader-text h2 {
    color: #111;
    font-size: 32px;
    line-height: 1;
}

.loader-text p {
    margin-top: 2px;
    color: #111;
    font-size: 28px;
    line-height: 1;
}

.loader-bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: #ddd;
    border-radius: 30px;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: #6c4cf1;
    border-radius: 30px;
    animation: loadingBar 0.7s ease forwards;
}

@keyframes loadingBar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

    .login-page {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-left {
        min-height: 320px;
    }

    .login-left .overlay {
        padding: 40px 30px;
    }

    .login-right {
        min-height: auto;
        padding: 40px 25px;
    }

    .login-box {
        padding: 30px 25px;
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .login-left {
        min-height: 260px;
    }

    .login-left .overlay {
        padding: 30px 20px;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.2), #000);
    }

    .login-left h1 {
        margin-bottom: 12px;
        font-size: 30px;
    }

    .small-title {
        margin-bottom: 10px;
        font-size: 10px;
        letter-spacing: 2px;
    }

    .description {
        font-size: 14px;
        line-height: 1.5;
    }

    .login-right {
        padding: 25px 15px;
    }

    .login-box {
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 10px;
    }

    .login-box h2 {
        font-size: 26px;
    }

    .subtitle {
        margin-bottom: 25px;
        font-size: 14px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .input-group input {
        padding: 13px;
    }

    .login-btn {
        padding: 13px;
    }
}

/* =========================
   SMALL PHONES
   ========================= */

@media (max-width: 400px) {

    .login-left {
        min-height: 230px;
    }

    .login-left h1 {
        font-size: 26px;
    }

    .description {
        font-size: 13px;
    }

    .login-box {
        padding: 22px 16px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    .loader-text h2 {
        font-size: 26px;
    }

    .loader-text p {
        font-size: 22px;
    }

    .loader-logo {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}