
/* ==========================================
   HOTELSNIGHT PMS - AUTHENTICATION DESIGN
   ========================================== */

:root {
    --primary: #ff4d2d;
    --primary-dark: #e83e20;
    --navy: #14213d;
    --text: #17233b;
    --muted: #7b8495;
    --border: #e5e9f0;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    transition: color .2s ease;
}

/* ==========================================
   MAIN SPLIT LAYOUT
   ========================================== */

.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ==========================================
   LEFT RESORT PANEL
   ========================================== */

.auth-brand-panel {
    width: 58%;
    flex: 0 0 58%;
    min-height: 100vh;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    color: #ffffff;

    padding: 45px 65px 30px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: #10213b;

    background-image:
        linear-gradient(
            90deg,
            rgba(5, 19, 43, .96) 0%,
            rgba(5, 19, 43, .85) 30%,
            rgba(5, 19, 43, .57) 58%,
            rgba(5, 19, 43, .16) 100%
        ),
        url('/assets/images/auth-resort.png');

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background: linear-gradient(
        0deg,
        rgba(5, 16, 35, .54) 0%,
        transparent 35%
    );
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 13px;

    position: relative;
    z-index: 2;

    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.9px;
}

.brand-mark {
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: var(--primary);
    color: #fff;

    border-radius: 13px;

    font-size: 25px;
    font-weight: 800;
}

.brand-name {
    color: #ffffff;
}

.brand-dot {
    color: var(--primary);
}

/* ==========================================
   LEFT HERO CONTENT
   ========================================== */

.brand-content {
    width: 100%;
    max-width: 590px;

    position: relative;
    z-index: 2;

    margin-top: 55px;
    margin-bottom: 40px;
}

.brand-label {
    display: inline-block;

    color: #ff6349;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.1px;
}

.brand-content h1 {
    margin: 25px 0 25px;

    color: #fff;

    font-size: clamp(38px, 3.25vw, 57px);
    line-height: 1.13;

    font-weight: 800;
    letter-spacing: -2.4px;
}

.brand-description {
    max-width: 515px;

    color: #e0e8f4;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;

    margin: 0;
}

/* ==========================================
   FEATURE LIST
   ========================================== */

.brand-features {
    display: grid;
    gap: 19px;

    margin-top: 34px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 17px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 500;
}

.brand-feature svg {
    width: 23px;
    height: 23px;

    stroke-width: 1.8;
    flex-shrink: 0;
}

/* ==========================================
   LEFT BOTTOM HIGHLIGHTS
   ========================================== */

.brand-bottom {
    position: relative;
    z-index: 2;
}

.brand-divider {
    height: 1px;
    width: 100%;

    background: rgba(255, 255, 255, .25);

    margin-bottom: 25px;
}

.brand-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;

    margin-bottom: 32px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 11px;
}

.highlight-item svg {
    width: 27px;
    height: 27px;

    flex-shrink: 0;
    stroke-width: 1.6;
}

.highlight-item strong {
    display: block;

    color: #fff;

    font-size: 15px;
    font-weight: 800;
}

.highlight-item small {
    display: block;

    margin-top: 4px;

    color: #cbd5e1;

    font-size: 10px;
    line-height: 1.4;
}

.brand-footer {
    color: #b7c5d9;
    font-size: 11px;
}

/* ==========================================
   RIGHT FORM PANEL
   ========================================== */

.auth-form-panel {
    width: 42%;
    flex: 1;
    min-width: 0;

    min-height: 100vh;

    background: #ffffff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 35px 35px 30px;
}

.auth-form-container {
    width: 100%;
    max-width: 440px;

    margin: auto 0;
    padding: 35px 0;
}

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

.auth-heading {
    margin-bottom: 33px;
}

.eyebrow {
    display: inline-block;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.auth-heading h2 {
    margin: 13px 0 12px;

    color: #14213d;

    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.3;
}

.auth-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.8;
}

/* ==========================================
   FORM LABELS & INPUTS
   ========================================== */

.form-label {
    display: block;

    margin-bottom: 9px;

    color: #17233b;

    font-size: 12px;
    font-weight: 700;
}

.auth-input {
    width: 100%;
    height: 53px;

    padding: 12px 16px;

    background: #ffffff;
    border: 1px solid #e2e7ef;
    border-radius: 10px;

    color: #17233b;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.auth-input::placeholder {
    color: #8993a5;
}

.auth-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    outline: none;

    box-shadow: 0 0 0 3px rgba(255, 77, 45, .10);
}

.auth-input.is-invalid {
    border-color: #dc3545;
}

.required {
    color: var(--primary);
}

.form-hint {
    display: block;
    margin-top: 7px;

    color: var(--muted);
    font-size: 11px;
}

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

.password-field {
    position: relative;
}

.password-field .auth-input {
    padding-right: 78px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    background: transparent;
    border: 0;

    color: #7b8495;

    font-size: 12px;
    font-weight: 600;

    padding: 8px;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--primary);
}

/* ==========================================
   LINKS & CHECKBOXES
   ========================================== */

.auth-link,
.auth-switch a,
.form-check-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover,
.auth-switch a:hover,
.form-check-label a:hover {
    color: var(--primary-dark);
}

.auth-link {
    font-size: 12px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-check-input {
    cursor: pointer;
}

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

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 45, .1);
}

.form-check-label {
    color: #687386;
    font-size: 12px;
    line-height: 1.7;
}

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

.btn-auth-primary {
    width: 100%;
    min-height: 53px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 10px;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.btn-auth-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);

    box-shadow: 0 7px 18px rgba(255, 77, 45, .17);
}

.btn-auth-primary:active {
    transform: translateY(1px);
}

.btn-auth-primary:focus-visible,
.password-toggle:focus-visible {
    outline: 3px solid rgba(255, 77, 45, .4);
    outline-offset: 2px;
}

/* ==========================================
   DIVIDER & REGISTER LINK
   ========================================== */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 33px 0 27px;

    color: #9aa3b1;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    height: 1px;
    flex: 1;

    background: #e5e9f0;
}

.auth-switch {
    margin-bottom: 0;

    color: var(--muted);

    text-align: center;
    font-size: 12px;
}

/* ==========================================
   FOOTER
   ========================================== */

.auth-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;

    width: 100%;

    margin-top: auto;

    color: #9aa3b1;
    font-size: 11px;
}

.auth-bottom a {
    color: #7b8495;
    text-decoration: none;
}

.auth-bottom a:hover {
    color: var(--primary);
}

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

.auth-mobile-logo {
    display: none;
}

.mobile-brand-name {
    color: #14213d;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.8px;
}

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

.alert {
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.6;
}

/* ==========================================
   RESPONSIVE - LAPTOP
   ========================================== */

@media (max-width: 1199px) {

    .auth-brand-panel {
        width: 52%;
        flex-basis: 52%;
        padding: 38px 38px 28px;
    }

    .auth-form-panel {
        width: 48%;
        padding: 30px;
    }

    .brand-content h1 {
        font-size: 42px;
        letter-spacing: -1.8px;
    }

    .brand-description {
        font-size: 13px;
    }

    .highlight-item {
        gap: 7px;
    }

    .highlight-item strong {
        font-size: 12px;
    }

    .highlight-item svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 991px) {

    .auth-brand-panel {
        width: 45%;
        flex-basis: 45%;
        padding: 30px 26px;
    }

    .auth-form-panel {
        width: 55%;
        padding: 25px 30px;
    }

    .brand-logo {
        font-size: 21px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .brand-content h1 {
        font-size: 35px;
        line-height: 1.2;
    }

    .desktop-break {
        display: none;
    }

    .brand-feature {
        font-size: 12px;
        gap: 11px;
    }

    .brand-highlights {
        display: none;
    }

    .brand-divider {
        margin-bottom: 20px;
    }

    .auth-heading h2 {
        font-size: 25px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 767px) {

    .auth-wrapper {
        display: block;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        min-height: 100vh;
        padding: 25px 22px;
    }

    .auth-mobile-logo {
        display: flex;
        align-items: center;
        gap: 11px;

        width: 100%;
        max-width: 440px;

        margin-bottom: 28px;
    }

    .auth-form-container {
        padding: 15px 0 35px;
    }

    .auth-heading {
        margin-bottom: 27px;
    }

    .auth-heading h2 {
        font-size: 25px;
    }

    .auth-input {
        height: 51px;
    }

    .auth-bottom {
        padding-top: 20px;
    }
}

@media (max-width: 380px) {

    .auth-form-panel {
        padding: 22px 17px;
    }

    .auth-heading h2 {
        font-size: 23px;
    }

    .auth-divider {
        gap: 8px;
        font-size: 9px;
    }
}
