:root {
    --ctc-green: #78b943;
    --ctc-green-2: #5fa832;
    --ctc-white: #f7fbff;
    --ctc-muted: #b9c4d3;
    --ctc-panel: rgba(5, 17, 31, .88);
    --ctc-border: rgba(255, 255, 255, .18);
}

html, body {
    min-height: 100%;
}

body.motel-login-page {
    margin: 0 !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    background: #06111f url('/images/login/cabana-motel-login.png') center center / cover no-repeat fixed !important;
}

body.motel-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at center, rgba(1, 8, 16, .03) 0%, rgba(1, 8, 16, .16) 58%, rgba(1, 8, 16, .42) 100%),
        linear-gradient(180deg, rgba(2, 12, 27, .08), rgba(2, 12, 27, .18));
    pointer-events: none;
}

body.motel-login-page > .motel-login-hide-original {
    display: none !important;
}

.motel-login-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    width: 100%;
    padding: 18px 18px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motel-login-card {
    width: min(500px, calc(100vw - 40px));
    padding: 26px 30px 22px;
    color: var(--ctc-white);
    background: var(--ctc-panel);
    border: 1px solid var(--ctc-border);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .44);
    backdrop-filter: blur(14px) saturate(122%);
    -webkit-backdrop-filter: blur(14px) saturate(122%);
}

.motel-login-brand {
    text-align: center;
    margin-bottom: 18px;
}

.motel-login-logo {
    width: 74px;
    height: 62px;
    margin: 0 auto 8px;
    position: relative;
}

.motel-login-logo::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 16px;
    width: 44px;
    height: 34px;
    border: 5px solid #f0d6a2;
    border-top: 0;
    border-radius: 4px;
}

.motel-login-logo::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    width: 48px;
    height: 48px;
    border-left: 5px solid #f0d6a2;
    border-top: 5px solid #f0d6a2;
    transform: rotate(45deg);
    border-radius: 3px;
}

.motel-login-title {
    margin: 0;
    color: white;
    font-size: clamp(28px, 3.1vw, 38px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.6px;
}

.motel-login-title span {
    color: var(--ctc-green);
}

.motel-login-subtitle {
    margin-top: 7px;
    color: #f1f5f9;
    font-size: 15px;
}

.motel-login-intro {
    margin: 4px 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
}

.motel-login-intro-title {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.motel-login-intro-text {
    margin: 0;
    color: #d7e1ef;
    font-size: 14px;
    line-height: 1.45;
}

.motel-login-card form {
    width: 100%;
    margin: 0 !important;
}

.motel-login-card label {
    color: #e8edf4 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.motel-login-card input[type="text"],
.motel-login-card input[type="email"],
.motel-login-card input[type="password"],
.motel-login-card input[type="tel"],
.motel-login-card .form-control,
.motel-login-input {
    width: 100% !important;
    min-height: 50px !important;
    margin-bottom: 13px !important;
    padding: 0 15px !important;
    color: white !important;
    background: rgba(4, 13, 24, .54) !important;
    border: 1px solid rgba(255, 255, 255, .23) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 15px !important;
}

.motel-login-card input::placeholder {
    color: #98a5b5 !important;
    opacity: 1 !important;
}

.motel-login-card input:focus,
.motel-login-card .form-control:focus {
    border-color: rgba(120, 185, 67, .92) !important;
    box-shadow: 0 0 0 3px rgba(120, 185, 67, .15) !important;
}

.motel-login-card button[type="submit"],
.motel-login-card input[type="submit"],
.motel-login-card .btn-login,
.motel-login-card .btn-primary,
.motel-login-submit {
    width: 100% !important;
    min-height: 50px !important;
    margin-top: 8px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(90deg, var(--ctc-green-2), var(--ctc-green)) !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 22px rgba(79, 148, 44, .24) !important;
    cursor: pointer !important;
}

.motel-login-card button[type="submit"]:hover,
.motel-login-card input[type="submit"]:hover,
.motel-login-card .btn-primary:hover {
    filter: brightness(1.07);
}

.motel-login-card .btn-secondary,
.motel-login-card .btn-outline-secondary,
.motel-login-card a.btn,
.motel-login-card a.btn-secondary {
    display: block !important;
    width: 100% !important;
    min-height: 46px !important;
    margin-top: 10px !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    background: rgba(7, 17, 29, .72) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.motel-login-card .btn-secondary:hover,
.motel-login-card .btn-outline-secondary:hover,
.motel-login-card a.btn:hover,
.motel-login-card a.btn-secondary:hover {
    background: rgba(10, 22, 38, .84) !important;
    color: #ffffff !important;
}

.motel-login-card a {
    color: #d9e5f2 !important;
}

.motel-login-card .text-danger,
.motel-login-card .validation-summary-errors,
.motel-login-card [data-valmsg-for],
.motel-login-card .alert-error {
    color: #ffb8b8 !important;
}

.motel-login-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: 20px;
    padding: 16px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.motel-login-feature {
    text-align: center;
    color: #e9eef4;
    font-size: 11px;
    line-height: 1.25;
}

.motel-login-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto 6px;
    color: var(--ctc-green);
    font-size: 22px;
    font-weight: 800;
}

.motel-login-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.motel-login-footer {
    position: fixed;
    z-index: 3;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 30px);
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.motel-login-footer b {
    color: var(--ctc-green);
}

@media (max-width: 700px) {
    body.motel-login-page {
        overflow: auto !important;
        background-position: 60% center !important;
    }

    .motel-login-shell {
        align-items: flex-start;
        padding: 18px 12px 58px;
    }

    .motel-login-card {
        width: min(100%, 440px);
        padding: 22px 18px 20px;
        border-radius: 18px;
    }

    .motel-login-features {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
    }

    .motel-login-feature {
        font-size: 10px;
    }

    .motel-login-feature-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-height: 760px) and (min-width: 701px) {
    body.motel-login-page {
        overflow: auto !important;
    }

    .motel-login-shell {
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 60px;
    }

    .motel-login-card {
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .motel-login-brand {
        margin-bottom: 14px;
    }

    .motel-login-features {
        margin-top: 16px;
        padding-top: 12px;
    }
}
