*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --teal: #0ea5b0;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --border: #e2eaf4;
    --white: #ffffff;
    --success: #10b981;
    --error-bg: #fff1f1;
    --error-border: #fecaca;
    --error-text: #dc2626;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm:
        0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md:
        0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-lg:
        0 20px 48px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(15, 23, 42, 0.06);
}

html,
body {
    height: 100%;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: #eaf4ff;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND ── */
.bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #eaf4ff 0%, #f0f7ff 40%, #fff8f0 100%);
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
}
.blob-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #bae3ff 0%, #93c5fd 100%);
    top: -140px;
    left: -100px;
    animation: blobFloat 9s ease-in-out infinite;
}
.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffddd0 0%, #ffc9b5 100%);
    bottom: -80px;
    right: -80px;
    animation: blobFloat 11s ease-in-out infinite reverse;
}
.blob-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #c7f5e8 0%, #a7f3d0 100%);
    top: 55%;
    left: 58%;
    animation: blobFloat 7s ease-in-out infinite 2s;
}
@keyframes blobFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(18px, -22px) scale(1.04);
    }
    66% {
        transform: translate(-12px, 14px) scale(0.97);
    }
}

/* ── LAYOUT ── */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px;
}

/* ── LEFT ── */
.panel-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem 3rem 4rem;
    animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}
.brand-name {
    font-family: "Fraunces", serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.brand-name span {
    color: var(--blue);
}

.hero-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    width: fit-content;
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

.hero-title {
    font-family: "Fraunces", serif;
    font-size: clamp(2.4rem, 3.5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.hero-title strong {
    font-weight: 600;
    background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.stat-num {
    font-family: "Fraunces", serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.stat-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.hotel-scroll {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.hotel-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    cursor: default;
}
.hotel-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.hotel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hotel-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.hotel-count {
    font-size: 0.65rem;
    color: var(--muted);
}

.bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.bottom-bar p {
    font-size: 0.7rem;
    color: var(--muted);
}
.bottom-bar a {
    color: var(--blue);
    text-decoration: none;
    transition: opacity 0.2s;
}
.bottom-bar a:hover {
    opacity: 0.7;
}

/* ── RIGHT ── */
.panel-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem 2rem 2rem;
    animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.card {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-header {
    margin-bottom: 2rem;
}
.card-welcome {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.card-title {
    font-family: "Fraunces", serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}
.card-sub {
    font-size: 0.82rem;
    color: var(--muted);
}

/* Alert */
.alert {
    display: none;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.alert.show {
    display: flex;
}
.alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
}
.alert p {
    font-size: 0.8rem;
    color: var(--error-text);
    line-height: 1.5;
}

/* Fields */
.field {
    margin-bottom: 1.1rem;
}
.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.45rem;
}
.field-label a {
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--blue);
    text-decoration: none;
    transition: opacity 0.2s;
}
.field-label a:hover {
    opacity: 0.7;
}

.input-wrap {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.input-wrap:focus-within .input-icon {
    color: var(--blue);
}

.field-input {
    width: 100%;
    background: #f8fafd;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.78rem 1rem 0.78rem 2.6rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ink);
    outline: none;
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}
.field-input::placeholder {
    color: #b0bdcc;
}
.field-input:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.field-input.err {
    border-color: var(--error-text);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.pwd-toggle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition:
        color 0.2s,
        background 0.2s;
}
.pwd-toggle:hover {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.06);
}

/* Toggle switch */
.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
}
.toggle-track {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #e2eaf4;
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
}
.toggle-track::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toggle-input {
    display: none;
}
.toggle-input:checked ~ .toggle-track {
    background: var(--blue);
}
.toggle-input:checked ~ .toggle-track::after {
    transform: translateX(16px);
}
.toggle-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-soft);
}

/* Submit */
.btn-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--blue) 0%, #3b82f6 100%);
    border: none;
    border-radius: var(--radius-sm);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.btn-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 60%
    );
    pointer-events: none;
}
.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--blue-hover) 0%, var(--blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}
.btn-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
}

/* Divider */
.divider-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.2rem 0;
}
.divider-or::before,
.divider-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.divider-or span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

/* SSO */
.btn-sso {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 44px;
    transition: all 0.2s;
}
.btn-sso:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    color: var(--blue);
}

/* Security */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.4rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--muted);
}
.security-note svg {
    color: var(--success);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
    }
    .panel-left {
        display: none;
    }
    .panel-right {
        padding: 2rem 1.25rem;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 3rem;
    }
    .card {
        padding: 2rem 1.5rem;
    }
}
