/* HotelWai — responsive refresh for login and registration.
   Loaded after the theme bundle so these scoped rules win without changing PMS styles. */
:root {
    --hw-auth-blue: #0878f9;
    --hw-auth-blue-dark: #0754a8;
    --hw-auth-ink: #17243a;
    --hw-auth-muted: #68788f;
    --hw-auth-border: #dce5f1;
    --hw-auth-field: #f2f6fc;
}

body.hw-auth-page {
    min-height: 100%;
    background: #ffffff !important;
    overflow-x: hidden;
}

.hw-auth-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: auto !important;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    background: #ffffff !important;
}

.hw-auth-shell .hw-auth-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 !important;
    background: #ffffff !important;
}

#login-responsive.hw-auth-form-panel {
    display: flex;
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(30px, 4.2vw, 68px);
    background: #ffffff !important;
}

#login-responsive .hw-auth-form-row {
    display: flex;
    width: 100%;
    margin: 0 !important;
    justify-content: center;
}

#login-responsive .hw-auth-form-wrap {
    flex: 0 1 520px;
    width: 100%;
    max-width: 520px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
}

#login-responsive .hw-auth-card-body {
    width: 100%;
    padding: 0 !important;
    margin: 0;
}

.hw-auth-form {
    width: 100%;
    margin: 0;
}

#login-background.hw-auth-visual-panel {
    display: flex;
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    padding: 0 !important;
    background: var(--hw-auth-blue-dark) !important;
}

#login-background.hw-auth-visual-panel .login-bg {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: clamp(24px, 4vw, 64px);
    background: linear-gradient(145deg, #0868cf 0%, #0754a8 48%, #063b7d 100%);
    animation: none;
}

#login-background.hw-auth-visual-panel .login-bg img {
    display: block;
    width: 100%;
    max-width: 820px;
    max-height: 82vh;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Brand and headings */
.hw-app-login-brand {
    margin: 0 0 25px;
}

.hw-app-login-brand img,
.hw-auth-register-brand img {
    display: block;
    width: min(220px, 72vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hw-app-login-brand p {
    margin: 13px 0 0;
    color: var(--hw-auth-ink);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
}

.hw-app-login-title {
    margin: 0 0 6px;
    color: var(--hw-auth-ink);
    font-size: clamp(23px, 2vw, 28px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.hw-app-login-intro {
    margin: 0 0 25px;
    color: var(--hw-auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

.hw-auth-register-brand {
    display: flex;
    justify-content: center;
    margin: 0 auto 13px;
}

.hw-auth-register-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hw-auth-heading {
    margin: 0 auto 25px;
    text-align: center;
}

.hw-auth-heading .login-title {
    margin: 0 0 8px !important;
    color: var(--hw-auth-ink);
    font-size: clamp(24px, 2.1vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.04em;
    text-shadow: none;
}

.hw-auth-heading .login-title span {
    color: var(--hw-auth-blue);
}

.hw-auth-heading p {
    margin: 0;
    color: var(--hw-auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* Shared, touch-friendly form controls */
.hw-auth-form .input-box {
    min-width: 0;
    margin-bottom: 18px;
}

.hw-auth-form .input-box > label {
    display: block;
    margin: 0 0 8px;
    color: #1d2b42;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.4;
}

.hw-auth-form .form-control {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    height: auto;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid var(--hw-auth-border) !important;
    border-radius: 12px !important;
    outline: 0;
    background: var(--hw-auth-field) !important;
    color: #17243a !important;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.45;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hw-auth-form .form-control::placeholder {
    color: #8593a8;
    opacity: 1;
}

.hw-auth-form .form-control:focus {
    border-color: #3988ed !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(8, 120, 249, .12) !important;
}

.hw-auth-form .invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 12px !important;
    line-height: 1.4;
}

.hw-auth-form .divider {
    margin: 18px 0;
}

.hw-auth-form .social-logins-box {
    gap: 10px !important;
}

.hw-auth-form .social-login-button {
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.35;
}

/* Login options and primary actions */
.hw-app-login-form .form-group.mb-3 > .hw-auth-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin-top: 16px;
}

.hw-app-login-form .hw-auth-options .custom-switch {
    max-width: 100%;
    margin: 0;
}

.hw-app-login-form .hw-auth-options .ml-auto {
    margin-left: auto;
}

.hw-auth-form .login-main-button {
    display: inline-flex;
    width: 100%;
    max-width: 285px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 0;
    border-radius: 14px;
    background: var(--hw-auth-blue);
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(8, 120, 249, .2);
    font-size: 15px !important;
    font-weight: 750;
    line-height: 1.35;
    text-transform: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hw-auth-form .login-main-button:hover,
.hw-auth-form .login-main-button:focus-visible {
    background: #0569df;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(8, 120, 249, .25);
    transform: translateY(-1px);
}

.hw-auth-form .login-main-button:disabled {
    cursor: wait;
    opacity: .78;
    transform: none;
}

.hw-auth-form .special-action-sign {
    color: var(--hw-auth-blue) !important;
    font-weight: 700;
    text-decoration: none;
}

.hw-auth-form .special-action-sign:hover {
    text-decoration: underline;
}

/* Registration: balanced two-column fields on desktop, one column on phones. */
.hw-auth-shell--register #login-responsive.hw-auth-form-panel {
    align-items: flex-start;
    padding-top: clamp(28px, 4.5vh, 58px);
    padding-bottom: 44px;
}

.hw-auth-shell--register #login-responsive .hw-auth-form-wrap {
    flex-basis: 600px;
    max-width: 600px;
}

.hw-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 0;
    width: 100%;
}

.hw-register-grid .hw-register-field {
    min-width: 0;
}

.hw-register-grid .hw-register-field--full {
    grid-column: 1 / -1;
}

.hw-auth-register-form .awselect {
    float: none;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--hw-auth-border);
    border-radius: 12px;
    background: var(--hw-auth-field);
    overflow: visible;
}

.hw-auth-register-form .awselect .front_face {
    float: none;
    min-height: 50px;
    padding: 15px 17px;
    border-radius: 12px;
    color: #17243a;
    box-sizing: border-box;
}

.hw-auth-register-form .awselect .front_face > .bg {
    border-radius: 12px;
    background: transparent;
}

.hw-auth-register-form .awselect .front_face .content,
.hw-auth-register-form .awselect .front_face .current_value {
    color: #17243a;
    font-size: 14px;
}

.hw-auth-register-form .awselect .back_face {
    z-index: 20;
    border: 1px solid var(--hw-auth-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(24, 45, 76, .13);
}

.hw-auth-consents {
    display: grid;
    gap: 10px;
    margin: 4px 0 20px;
}

.hw-auth-consents .form-group {
    margin: 0 !important;
}

.hw-auth-consents .form-group > .d-flex {
    align-items: flex-start;
}

.hw-auth-consents .custom-switch {
    display: flex;
    width: 100%;
    align-items: flex-start;
    margin: 0;
    padding-left: 0;
}

.hw-auth-consents .custom-switch-indicator {
    flex: 0 0 36px;
    margin-top: 1px;
}

.hw-auth-consents .custom-switch-description {
    display: block;
    margin: 0 0 0 10px;
    color: #68788f !important;
    font-size: 11px !important;
    line-height: 1.55;
    white-space: normal;
}

.hw-auth-submit .form-group {
    margin-bottom: 0 !important;
}

.hw-auth-submit .login-main-button {
    max-width: none;
}

.hw-auth-submit > p {
    margin-top: 16px !important;
    color: var(--hw-auth-muted);
    font-size: 12px !important;
}

/* Medium screens: give the form a little more room than the illustration. */
@media (min-width: 769px) and (max-width: 991.98px) {
    #login-responsive.hw-auth-form-panel {
        flex-basis: 56%;
        width: 56%;
        max-width: 56%;
        padding: 28px;
    }

    #login-background.hw-auth-visual-panel {
        flex-basis: 44%;
        width: 44%;
        max-width: 44%;
    }

    #login-background.hw-auth-visual-panel .login-bg {
        padding: 22px;
    }

    .hw-auth-shell--register #login-responsive .hw-auth-form-wrap {
        max-width: 100%;
    }
}

/* Mobile: remove the illustration column, avoid fixed-height clipping, and use full width. */
@media (max-width: 768px) {
    .hw-auth-shell {
        min-height: 100vh;
        min-height: 100svh;
        height: auto !important;
        overflow: visible;
    }

    .hw-auth-shell .hw-auth-layout {
        display: block;
        min-height: 100vh;
        min-height: 100svh;
    }

    #login-responsive.hw-auth-form-panel {
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        align-items: center;
        justify-content: center;
        padding: 28px 20px 34px;
    }

    #login-responsive .hw-auth-form-row {
        width: 100%;
        margin: 0 !important;
    }

    #login-responsive .hw-auth-form-wrap {
        flex: 0 1 500px;
        width: 100%;
        max-width: 500px;
        padding: 0;
    }

    #login-responsive .hw-auth-card-body {
        padding: 0 !important;
    }

    #login-background.hw-auth-visual-panel {
        display: none !important;
    }

    .hw-app-login-brand {
        margin-bottom: 20px;
        text-align: center;
    }

    .hw-app-login-brand img {
        margin: 0 auto;
    }

    .hw-app-login-brand p,
    .hw-app-login-title,
    .hw-app-login-intro {
        text-align: center;
    }

    .hw-app-login-brand p {
        margin-top: 10px;
        font-size: 15px;
    }

    .hw-app-login-title {
        font-size: 24px;
    }

    .hw-app-login-intro {
        margin-bottom: 22px;
        font-size: 13px;
    }

    .hw-auth-shell--register #login-responsive.hw-auth-form-panel {
        min-height: 100vh;
        min-height: 100svh;
        align-items: flex-start;
        padding: 24px 18px 34px;
    }

    .hw-auth-shell--register #login-responsive .hw-auth-form-wrap {
        flex-basis: 100%;
        max-width: 500px;
    }

    .hw-auth-register-brand {
        margin-bottom: 10px;
    }

    .hw-auth-register-brand img {
        width: min(190px, 68vw);
        margin: 0 auto;
    }

    .hw-auth-heading {
        margin-bottom: 22px;
    }

    .hw-auth-heading .login-title {
        font-size: 25px;
    }

    .hw-auth-heading p {
        font-size: 12px;
    }

    .hw-register-grid {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
    }

    .hw-register-grid .hw-register-field--full {
        grid-column: auto;
    }

    .hw-auth-consents {
        gap: 12px;
        margin-top: 2px;
    }

    .hw-auth-form .login-main-button,
    .hw-auth-submit .login-main-button {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 380px) {
    #login-responsive.hw-auth-form-panel {
        padding-right: 15px;
        padding-left: 15px;
    }

    .hw-auth-form .form-control {
        min-height: 48px;
        padding: 11px 13px;
    }

    .hw-app-login-brand img {
        width: min(195px, 68vw);
    }

    .hw-auth-heading .login-title {
        font-size: 23px;
    }
}

@media (max-height: 700px) and (min-width: 769px) {
    .hw-auth-shell--register #login-responsive.hw-auth-form-panel {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hw-auth-form .form-control,
    .hw-auth-form .login-main-button {
        transition: none !important;
    }
}


/* Final HotelWai auth polish: desktop registration card and reliable mobile sizing. */
.hw-auth-page .main-content,
.hw-auth-page .side-app { min-height:100vh; }
.hw-auth-shell--register .hw-auth-form-wrap { max-width:640px; }
.hw-auth-register-form { padding:clamp(20px,2.5vw,34px); border:1px solid rgba(220,229,241,.8); border-radius:22px; background:#fff; box-shadow:0 18px 55px rgba(22,45,78,.08); }
.hw-auth-register-form .hw-auth-heading { margin-bottom:24px; }
.hw-auth-register-form .hw-register-grid { column-gap:16px; }
.hw-auth-register-form .input-box { margin-bottom:16px; }
.hw-auth-register-form .custom-switch-description { cursor:pointer; }
.hw-auth-register-form .hw-auth-submit .login-main-button { min-height:54px; }
.hw-auth-register-form .hw-auth-submit > p { margin-top:18px!important; }
.hw-auth-register-form .divider { margin:16px 0; }
.hw-auth-register-form .social-logins-box { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.hw-auth-register-form .social-login-button { display:flex; align-items:center; justify-content:center; min-width:0; }
@media (min-width:769px) {
  .hw-auth-shell--register #login-responsive.hw-auth-form-panel { padding-top:34px; padding-bottom:34px; }
  .hw-auth-shell--register #login-background.hw-auth-visual-panel { position:relative; }
  .hw-auth-shell--register #login-background .login-bg { position:sticky; top:0; }
}
@media (max-width:768px) {
  .hw-auth-page .page,
  .hw-auth-page .page-main,
  .hw-auth-page .main-content,
  .hw-auth-page .side-app { min-height:100%; height:auto!important; }
  .hw-auth-shell--register #login-responsive.hw-auth-form-panel { min-height:100svh; padding:22px 16px 32px; }
  .hw-auth-register-form { padding:8px 0 0; border:0; border-radius:0; box-shadow:none; }
  .hw-auth-register-form .hw-register-grid { row-gap:0; }
  .hw-auth-register-form .input-box { margin-bottom:15px; }
  .hw-auth-register-form .social-logins-box { grid-template-columns:1fr; }
  .hw-auth-register-form .hw-auth-heading { margin-bottom:20px; }
  .hw-auth-register-form .hw-auth-submit { padding-bottom:8px; }
}
@media (min-width:769px) and (max-width:1100px) {
  .hw-auth-shell--register #login-responsive.hw-auth-form-panel { padding-left:24px; padding-right:24px; }
  .hw-auth-register-form { padding:22px; }
}
