/* =============================================================
   ORAPMS — Authentication (Login) stylesheet
   -------------------------------------------------------------
   Dedicated file for the Login page only.
   Every class uses the "oa-" prefix so nothing here can collide
   with pms-ui.css, pms-master.css, your-hotels.css or dashboard.css.
   No other page loads this file.

   COMPACT SCALE
   -------------
   The card is drawn at roughly 0.70 of its previous linear size,
   which is about half the area it used to occupy - a card that
   reads as "50% smaller" on screen.

   Fonts are scaled with a floor rather than by the same 0.70, so
   input text, labels and the security line stay readable. Nothing
   here changes the markup, the ids, the controls or the behaviour;
   it is only sizing.
   ============================================================= */

.oa-root {
    --oa-navy-1: #0B3049;
    --oa-navy-2: #0E3A54;
    --oa-navy-3: #082332;
    --oa-deep: #17798C;
    --oa-deep-2: #146A7C;
    --oa-deep-3: #0F5666;
    --oa-ink: #0F2A3D;
    --oa-ink-2: #2A4356;
    --oa-muted: #63798A;
    --oa-soft: #8AA0AE;
    --oa-line: #E1EAEF;
    --oa-field: #F5FAFB;
    --oa-ok: #16A34A;
    --oa-radius: 7px;
    --oa-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- page shell ---------- */
html.oa-html,
body.oa-body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.oa-body {
    font-family: 'Montserrat', system-ui, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #082332;
}

.oa-root * {
    box-sizing: border-box;
}

/* The implicit-submission guard. Must stay rendered - a display:none button is
   ignored as the form's default button by some browsers - so it is clipped
   instead. */
.oa-default-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.oa-form-root {
    margin: 0;
    display: block;
}

.oa-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 2.4vw, 38px) clamp(14px, 2.6vw, 26px);
    overflow: hidden;
    background: radial-gradient(760px 420px at 50% 0%, rgba(23,121,140,.26), transparent 66%), linear-gradient(175deg, var(--oa-navy-1) 0%, var(--oa-navy-2) 46%, var(--oa-navy-3) 100%);
}

    .oa-shell::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(120% 92% at 50% 46%, transparent 48%, rgba(0,0,0,.24) 100%);
    }

/* ---------- card ---------- */
.oa-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(880px, 93vw);
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    background: #fff;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(4,20,30,.20), 0 22px 50px -18px rgba(4,20,30,.55);
}

/* =============================================================
   LEFT PANEL
   ============================================================= */
.oa-left {
    position: relative;
    padding: clamp(24px, 2.6vw, 38px) clamp(22px, 2.8vw, 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(170deg, #EDF6F8 0%, #EAF4F6 60%, #F1F8F8 100%);
}

    .oa-left::before {
        content: "";
        position: absolute;
        right: -82px;
        top: -96px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: radial-gradient(circle at 40% 44%, rgba(163,214,213,.62), rgba(198,229,229,.34) 60%, rgba(198,229,229,0) 73%);
    }

    .oa-left > * {
        position: relative;
        z-index: 2;
    }

.oa-brand {
    display: flex;
    align-items: center;
    margin-bottom: clamp(22px, 2.4vw, 32px);
}

.oa-brand-logo {
    height: clamp(34px, 2.8vw, 44px);
    width: auto;
    display: block;
}

.oa-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: 16px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--oa-deep);
}

    .oa-kicker svg {
        width: 11px;
        height: 11px;
    }

.oa-headline {
    margin: 0 0 16px;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -1.1px;
    color: var(--oa-ink);
    max-width: 11ch;
}

.oa-lead {
    margin: 0 0 auto;
    font-size: clamp(12.5px, .95vw, 13.5px);
    line-height: 1.7;
    color: var(--oa-muted);
    max-width: 40ch;
}

.oa-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: clamp(20px, 2.4vw, 32px);
}

.oa-feature {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--oa-line);
    border-radius: var(--oa-radius);
    padding: 10px 9px;
    transition: transform .18s var(--oa-ease), box-shadow .18s var(--oa-ease), border-color .18s var(--oa-ease);
}

    .oa-feature:hover {
        transform: translateY(-2px);
        border-color: #C6DCE1;
        box-shadow: 0 6px 13px rgba(15,42,61,.07);
    }

    .oa-feature svg {
        flex: none;
        width: 15px;
        height: 15px;
        color: var(--oa-deep);
    }

.oa-feature-title {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--oa-ink);
    line-height: 1.3;
}

/* =============================================================
   RIGHT PANEL — form
   ============================================================= */
.oa-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 2.6vw, 38px) clamp(22px, 2.8vw, 40px);
    background: #fff;
}

.oa-form {
    width: 100%;
    max-width: 318px;
}

.oa-form-logo {
    display: none;
    height: 32px;
    margin: 0 auto 20px;
}

.oa-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 11px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--oa-deep);
}

.oa-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--oa-ok);
    box-shadow: 0 0 0 0 rgba(22,163,74,.5);
    animation: oaPulse 2.4s infinite;
}

@keyframes oaPulse {
    70% {
        box-shadow: 0 0 0 5px rgba(22,163,74,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22,163,74,0);
    }
}

.oa-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    letter-spacing: -.75px;
    color: var(--oa-ink);
    line-height: 1.1;
}

.oa-desc {
    margin: 0 0 18px;
    font-size: clamp(12px, .9vw, 13px);
    color: var(--oa-muted);
    line-height: 1.55;
}

.oa-message {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: var(--oa-radius);
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 18px;
    background: #FFF4EF;
    border: 1px solid #F7D6C4;
    color: #963B12;
}

    .oa-message.oa-message-success {
        background: #EFFAF8;
        border-color: #C4E7E2;
        color: #0B6B62;
    }

    .oa-message svg {
        flex: none;
        width: 13px;
        height: 13px;
        margin-top: 1px;
    }

.oa-field {
    margin-bottom: 14px;
}

.oa-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.oa-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--oa-ink-2);
    margin: 0;
}

.oa-forgot {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--oa-deep);
    cursor: pointer;
}

    .oa-forgot:hover {
        color: var(--oa-deep-3);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .oa-forgot:focus-visible {
        outline: 2px solid var(--oa-deep);
        outline-offset: 2px;
        border-radius: 4px;
    }

.oa-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .oa-input-wrap > .oa-input-icon {
        position: absolute;
        left: 13px;
        width: 16px;
        height: 16px;
        color: #8AA0AE;
        pointer-events: none;
    }

.oa-input {
    width: 100%;
    height: 44px;
    padding: 0 13px 0 39px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--oa-ink);
    background: var(--oa-field);
    border: 1px solid var(--oa-line);
    border-radius: var(--oa-radius);
    outline: 0;
    transition: border-color .2s var(--oa-ease), box-shadow .2s var(--oa-ease), background .2s var(--oa-ease);
}

    .oa-input::placeholder {
        color: #9FB3BF;
        font-weight: 400;
    }

    .oa-input:hover {
        border-color: #C9DCE1;
    }

    .oa-input:focus {
        background: #fff;
        border-color: var(--oa-deep);
        box-shadow: 0 0 0 3px rgba(23,121,140,.13);
    }

.oa-field-password .oa-input {
    padding-right: 46px;
}

.oa-eye {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8AA0AE;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .16s, color .16s;
}

    .oa-eye:hover {
        background: #EDF4F6;
        color: var(--oa-ink-2);
    }

    .oa-eye:focus-visible {
        outline: 2px solid var(--oa-deep);
        outline-offset: 1px;
    }

    .oa-eye svg {
        width: 18px;
        height: 18px;
        opacity: .75;
        transition: opacity .16s;
    }

    /* pms-common.js toggles .is-visible on the button */
    .oa-eye.is-visible {
        background: #EDF4F6;
        color: var(--oa-deep);
    }

        .oa-eye.is-visible svg {
            opacity: 1;
        }

.oa-submit {
    position: relative;
    width: 100%;
    height: 46px;
    margin-top: 5px;
    border: 0;
    border-radius: var(--oa-radius);
    overflow: hidden;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(180deg, #1C8699 0%, var(--oa-deep) 46%, var(--oa-deep-2) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(9,60,72,.26), 0 7px 14px -7px rgba(15,86,102,.55);
    transition: transform .12s var(--oa-ease), box-shadow .22s var(--oa-ease), filter .22s var(--oa-ease);
}

    .oa-submit:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
    }

    .oa-submit:active {
        transform: translateY(0);
        filter: brightness(.97);
    }

    .oa-submit:focus-visible {
        outline: 2px solid var(--oa-ink);
        outline-offset: 2px;
    }

    .oa-submit svg {
        width: 15px;
        height: 15px;
    }

    .oa-submit .oa-arrow {
        transition: transform .22s var(--oa-ease);
    }

    .oa-submit:hover .oa-arrow {
        transform: translateX(3px);
    }

/* ---------- Forgot Password panel ---------- */
.oa-signin[hidden],
.oa-reset[hidden] {
    display: none;
}

.oa-reset-intro {
    margin: 0 0 15px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--oa-muted);
}

/* Sits under the primary button, aligned to the right edge of the form. */
.oa-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 11px;
}

.oa-divider {
    height: 1px;
    background: var(--oa-line);
    margin: 17px 0 12px;
}

.oa-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    color: var(--oa-muted);
    text-align: center;
}

    .oa-secure svg {
        flex: none;
        width: 14px;
        height: 14px;
        color: var(--oa-deep);
    }

.oa-credit {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    font-size: 11.5px;
    color: #7A94A4;
    text-align: center;
}

    .oa-credit a {
        color: #5FC8C2;
        font-weight: 700;
        text-decoration: none;
    }

        .oa-credit a:hover {
            text-decoration: underline;
        }

/* =============================================================
   LOADING OVERLAY
   Driven by pms-common.js (adds .is-visible) — behaviour unchanged.
   ============================================================= */
.oa-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(7,26,38,.94);
}

    .oa-loader.is-visible {
        display: flex;
    }

    .oa-loader img {
        height: 28px;
    }

.oa-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.oa-loader-bar {
    width: 168px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.14);
    overflow: hidden;
}

    .oa-loader-bar > span {
        display: block;
        height: 100%;
        width: 36%;
        border-radius: 2px;
        background: linear-gradient(90deg, #2CC0B9, #E8A33D);
        animation: oaSlide 1.05s var(--oa-ease) infinite;
    }

@keyframes oaSlide {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(330%);
    }
}

.oa-loader-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
}

.oa-loader-text {
    font-size: 11px;
    color: #8FAAB7;
}

body.pms-loading {
    overflow: hidden;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 860px) {
    .oa-shell {
        padding: 24px 18px 18px;
    }

    .oa-card {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .oa-left {
        padding: 26px 26px 24px;
    }

    .oa-brand {
        margin-bottom: 18px;
    }

    .oa-brand-logo {
        height: 34px;
    }

    .oa-headline {
        font-size: clamp(26px, 4.4vw, 34px);
        max-width: 20ch;
        letter-spacing: -1px;
        margin-bottom: 14px;
    }

    .oa-lead {
        font-size: 14px;
        max-width: none;
    }

    .oa-features {
        margin-top: 18px;
        gap: 6px;
    }

    .oa-right {
        padding: 26px 26px 24px;
    }

    .oa-form {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .oa-shell {
        padding: 0;
        justify-content: flex-start;
    }

    .oa-card {
        border-radius: 0;
        max-width: none;
        box-shadow: none;
        min-height: 100vh;
        grid-template-rows: auto 1fr;
    }

    .oa-left {
        padding: 20px 18px 18px;
    }

    .oa-brand-logo {
        height: 34px;
    }

    .oa-kicker {
        margin-bottom: 12px;
        font-size: 10.5px;
        letter-spacing: 1px;
    }

    .oa-headline {
        font-size: clamp(23px, 7vw, 29px);
        letter-spacing: -.8px;
        margin-bottom: 11px;
        max-width: none;
    }

    .oa-lead {
        font-size: 13.5px;
    }

    .oa-features {
        grid-template-columns: 1fr;
        margin-top: 14px;
    }

    .oa-right {
        padding: 20px 18px 22px;
    }

    .oa-form-logo {
        display: block;
    }

    .oa-title {
        font-size: clamp(22px, 6.5vw, 27px);
    }

    /* 16px is deliberate: iOS Safari zooms the page when a focused input is
       under 16px, which throws the whole layout off. */
    .oa-input {
        height: 50px;
        font-size: 16px;
    }

    .oa-submit {
        height: 50px;
        font-size: 15.5px;
    }

    .oa-label {
        font-size: 13px;
    }

    .oa-feature-title {
        font-size: 13px;
    }

    .oa-forgot,
    .oa-secure,
    .oa-credit {
        font-size: 12.5px;
    }

    .oa-credit {
        margin: 0;
        padding: 12px 0 16px;
        background: #fff;
        color: var(--oa-soft);
    }

        .oa-credit a {
            color: var(--oa-deep);
        }
}

@media (prefers-reduced-motion: reduce) {
    .oa-loader-bar > span,
    .oa-status-dot {
        animation: none;
    }

    .oa-feature,
    .oa-submit {
        transition: none;
    }
}
