/* ==========================================================
   DADA PROPERTY & HOTEL MANAGEMENT
   PREMIUM LOGIN PAGE
   ========================================================== */

:root {
    --navy: #06294a;
    --navy-mid: #07345f;
    --navy-dark: #03213f;
    --navy-deep: #00182f;
    --orange: #ff6a00;
    --orange-light: #ff8a1c;
    --white: #ffffff;
    --muted: #bdcad9;
    --border: rgba(137, 177, 218, .58);
}


/* ==========================================================
   RESET
   ========================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

html {
    overflow: hidden;
}


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

body {
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vh, 20px);
    font-family: "Century Gothic", Arial, sans-serif;
    background: linear-gradient( rgba(0, 18, 42, .08), rgba(0, 18, 42, .08) ), url('/images/login-background.png') center center / cover no-repeat;
    color: #ffffff;
}


/* ==========================================================
   LANGUAGE SELECTOR
   ========================================================== */

.login-language {
    position: fixed;
    top: clamp(14px, 3vh, 34px);
    left: clamp(16px, 2vw, 30px);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 999px;
    background: rgba(248, 250, 253, .96);
    border: 1px solid rgba(255, 255, 255, .60);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
}


    .login-language a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 50px;
        height: 42px;
        padding: 0 14px;
        border-radius: 999px;
        color: var(--navy);
        text-decoration: none;
        font-size: 14px;
        font-weight: 800;
        transition: background .2s ease, color .2s ease, transform .2s ease;
    }


        .login-language a:hover {
            background: rgba(6, 41, 74, .07);
        }


        .login-language a.active {
            color: #ffffff;
            background: linear-gradient( 135deg, #ff6100, #ff8215 );
            box-shadow: 0 5px 15px rgba(255, 106, 0, .28);
        }


/* ==========================================================
   MAIN LOGIN CARD
   ========================================================== */

.login-card {
    position: relative;
    width: min(500px, 94vw);
    max-height: calc(100dvh - 28px);
    padding: clamp(22px, 3.5vh, 34px) clamp(24px, 3vw, 42px) clamp(22px, 3vh, 30px);
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(142, 180, 218, .68);
    border-radius: clamp(25px, 3vw, 34px);
    background: linear-gradient( 145deg, rgba(13, 54, 94, .985) 0%, rgba(4, 40, 76, .99) 48%, rgba(0, 25, 52, .995) 100% );
    box-shadow: 0 30px 85px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


    /* blue glow */

    .login-card::before {
        content: "";
        position: absolute;
        width: 390px;
        height: 270px;
        top: -185px;
        left: 50%;
        transform: translateX(-50%);
        background: radial-gradient( circle, rgba(64, 132, 194, .27), rgba(26, 85, 137, .10) 45%, transparent 72% );
        pointer-events: none;
    }


    /* orange bottom accent */

    .login-card::after {
        content: "";
        position: absolute;
        left: 65px;
        right: 65px;
        bottom: 0;
        height: 3px;
        background: linear-gradient( 90deg, transparent, var(--orange) 20%, var(--orange) 80%, transparent );
        pointer-events: none;
    }


/* ==========================================================
   LOGO
   ========================================================== */

.logo-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: clamp(5px, 1vh, 9px);
}


.logo {
    display: block;
    width: clamp(155px, 25vh, 195px);
    max-width: 68%;
    max-height: clamp(80px, 15vh, 108px);
    object-fit: contain;
    padding: 7px 14px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}


/* ==========================================================
   PORTAL BADGE
   ========================================================== */

.portal-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 3px 0 7px;
    padding: 7px 17px;
    border: 1px solid rgba(255, 106, 0, .44);
    border-radius: 999px;
    background: rgba(255, 106, 0, .10);
    color: var(--orange-light);
    font-size: 13px;
    font-weight: 800;
}


    .portal-badge i {
        color: var(--orange);
        font-size: 14px;
    }


/* ==========================================================
   SUBTITLE
   ========================================================== */

.subtitle {
    position: relative;
    z-index: 2;
    max-width: 390px;
    margin: 3px auto clamp(14px, 2.4vh, 22px);
    color: #c6d2e0;
    font-size: clamp(12px, 1.5vh, 14px);
    line-height: 1.5;
}


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

.login-form {
    position: relative;
    z-index: 2;
}


/* ==========================================================
   INPUT FIELD WRAPPER
   ========================================================== */

.field {
    position: relative;
    margin-top: clamp(10px, 1.7vh, 14px);
}


    /* left icon */

    .field > i {
        position: absolute;
        left: 19px;
        top: 50%;
        z-index: 3;
        transform: translateY(-50%);
        color: var(--orange);
        font-size: 19px;
        pointer-events: none;
    }


/* ==========================================================
   INPUTS
   ========================================================== */

.form-control {
    width: 100%;
    height: clamp(52px, 7vh, 60px);
    padding: 0 50px 0 54px !important;
    border: 1px solid rgba(127, 166, 207, .56) !important;
    border-radius: 17px !important;
    outline: none;
    background: rgba(0, 22, 48, .63) !important;
    color: #ffffff !important;
    font-family: "Century Gothic", Arial, sans-serif;
    font-size: clamp(13px, 1.8vh, 15px);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}


    .form-control::placeholder {
        color: #aebccd !important;
        opacity: 1;
    }


    .form-control:hover {
        border-color: rgba(160, 193, 225, .76) !important;
    }


    .form-control:focus {
        background: rgba(0, 20, 45, .82) !important;
        border-color: var(--orange) !important;
        box-shadow: 0 0 0 .18rem rgba(255, 106, 0, .13) !important;
    }


    /* Chrome autofill */

    .form-control:-webkit-autofill,
    .form-control:-webkit-autofill:hover,
    .form-control:-webkit-autofill:focus {
        -webkit-text-fill-color: #ffffff !important;
        caret-color: #ffffff;
        -webkit-box-shadow: 0 0 0 1000px #05294c inset !important;
        transition: background-color 9999s ease-in-out 0s;
    }


/* ==========================================================
   PASSWORD VISIBILITY BUTTON
   ========================================================== */

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    z-index: 4;
    width: 39px;
    height: 39px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #b9c6d6;
    font-size: 18px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}


    .password-toggle:hover {
        color: var(--orange);
        background: rgba(255, 106, 0, .10);
    }


/* ==========================================================
   VALIDATION
   ========================================================== */

.text-danger {
    display: block;
    margin: 4px 5px 0;
    color: #ff9da7 !important;
    text-align: left;
    font-size: 11px !important;
}


/* ==========================================================
   LOGIN OPTIONS
   ========================================================== */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: clamp(11px, 1.8vh, 15px) 0;
}


/* ==========================================================
   CHECKBOX
   ========================================================== */

.form-check {
    display: flex;
    align-items: center;
    min-height: 22px;
    margin: 0;
    padding-left: 0;
}


.form-check-input {
    float: none;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0 !important;
    border: 1px solid rgba(167, 193, 219, .66);
    background-color: rgba(0, 20, 44, .72);
    cursor: pointer;
}


    .form-check-input:checked {
        border-color: var(--orange);
        background-color: var(--orange);
    }


    .form-check-input:focus {
        border-color: var(--orange);
        box-shadow: 0 0 0 .15rem rgba(255, 106, 0, .15);
    }


.form-check-label {
    margin: 0;
    color: #d6e0eb;
    font-size: clamp(11px, 1.6vh, 13px);
    cursor: pointer;
}


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

.forgot {
    color: var(--orange-light);
    text-decoration: none;
    font-size: clamp(11px, 1.6vh, 13px);
    font-weight: 800;
    white-space: nowrap;
    transition: color .2s ease;
}


    .forgot:hover {
        color: #ffb064;
    }


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

.btn-login {
    position: relative;
    width: 100%;
    height: clamp(52px, 7vh, 59px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    padding: 0 18px;
    border: 1px solid rgba(255, 189, 122, .66);
    border-radius: 17px;
    background: linear-gradient( 90deg, #ff6400, #ff8719 );
    color: #ffffff;
    font-family: "Century Gothic", Arial, sans-serif;
    font-size: clamp(14px, 1.8vh, 16px);
    font-weight: 800;
    box-shadow: 0 11px 28px rgba(255, 106, 0, .27), inset 0 1px 0 rgba(255, 255, 255, .22);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}


    .btn-login:hover:not(:disabled) {
        transform: translateY(-1px);
        filter: brightness(1.04);
        box-shadow: 0 14px 34px rgba(255, 106, 0, .34);
    }


    .btn-login:active:not(:disabled) {
        transform: translateY(0);
    }


    .btn-login:disabled {
        opacity: .72;
        cursor: not-allowed;
    }


/* ==========================================================
   ALERTS
   ========================================================== */

.login-card .alert {
    position: relative;
    z-index: 3;
    margin: 0 0 12px;
    padding: 10px 13px;
    border-radius: 12px;
    text-align: left;
    font-size: 12px;
}


.login-card .alert-danger {
    color: #ffd5d9;
    background: rgba(220, 53, 69, .16);
    border: 1px solid rgba(255, 109, 123, .30);
}


.login-card .alert-success {
    color: #caf4dc;
    background: rgba(25, 135, 84, .18);
    border: 1px solid rgba(81, 207, 148, .28);
}


/* ==========================================================
   SHORT DESKTOP / LAPTOP SCREENS

   Makes sure the complete card remains visible without
   introducing a vertical page scrollbar.
   ========================================================== */

@media (max-height: 760px) and (min-width: 577px) {

    .login-card {
        width: min(470px, 92vw);
        padding: 18px 36px 20px;
        border-radius: 27px;
    }


    .logo {
        width: 145px;
        max-height: 76px;
        padding: 5px 12px;
    }


    .logo-wrapper {
        margin-bottom: 3px;
    }


    .portal-badge {
        margin: 2px 0 4px;
        padding: 5px 14px;
        font-size: 11px;
    }


    .subtitle {
        margin-bottom: 10px;
        font-size: 11.5px;
        line-height: 1.35;
    }


    .field {
        margin-top: 8px;
    }


    .form-control {
        height: 48px;
        border-radius: 14px !important;
        font-size: 13px;
    }


    .login-options {
        margin: 9px 0;
    }


    .btn-login {
        height: 49px;
        border-radius: 14px;
        font-size: 14px;
    }
}


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

@media (max-width: 576px) {

    html {
        overflow: auto;
    }


    body {
        min-height: 100dvh;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        align-items: flex-start;
        padding: 76px 13px 18px;
        background-attachment: scroll;
    }


    .login-language {
        top: 13px;
        left: 50%;
        transform: translateX(-50%);
    }


        .login-language a {
            min-width: 46px;
            height: 38px;
            padding: 0 12px;
        }


    .login-card {
        width: 100%;
        max-height: none;
        padding: 25px 20px 24px;
        border-radius: 27px;
    }


    .logo {
        width: 165px;
        max-height: 90px;
    }


    .portal-badge {
        padding: 6px 14px;
    }


    .subtitle {
        margin-bottom: 17px;
    }


    .form-control {
        height: 56px;
        border-radius: 16px !important;
    }


    .btn-login {
        height: 56px;
        border-radius: 16px;
    }
}


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

@media (max-width: 390px) {

    body {
        padding-left: 10px;
        padding-right: 10px;
    }


    .login-card {
        padding-left: 17px;
        padding-right: 17px;
    }


    .logo {
        width: 150px;
    }


    .login-options {
        gap: 8px;
    }


    .forgot,
    .form-check-label {
        font-size: 11px;
    }
}
