:root {
    --ink: #191817;
    --muted: #716d68;
    --paper: #f5f1ea;
    --surface: #fff;
    --line: #d8d0c6;
    --accent: #b4232f;
    --accent-dark: #8d1721;
    --gold: #d3a43d;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    margin: 0;
}

.member-login-page {
    display: grid;
    grid-template-columns: minmax(420px, 1.15fr) minmax(390px, .85fr);
    min-height: 100vh;
}

.cinema-panel {
    background-image: linear-gradient(180deg, rgba(12, 11, 10, .28), rgba(12, 11, 10, .92)),
        url("../images/cinemabg2.png");
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(2rem, 6vw, 5rem);
    position: relative;
}

.cinema-panel::after {
    background: var(--gold);
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    width: 30%;
}

.brand-lockup {
    align-items: center;
    display: flex;
    font-family: "Playfair Display", serif;
    font-size: 1.08rem;
    gap: .75rem;
}

.brand-mark {
    align-items: center;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: inline-flex;
    font-size: .78rem;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.cinema-copy {
    max-width: 610px;
}

.eyebrow,
.form-label-top {
    color: var(--gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0 0 .75rem;
    text-transform: uppercase;
}

.cinema-copy h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: 0;
    line-height: .98;
    margin: 0 0 1.1rem;
    max-width: 580px;
}

.cinema-copy > p:last-child {
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 430px;
}

.location-line {
    color: rgba(255, 255, 255, .55);
    display: flex;
    font-size: .7rem;
    gap: 1.5rem;
    text-transform: uppercase;
}

.login-panel {
    align-items: center;
    background: var(--paper);
    display: flex;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem);
}

.login-form-wrap {
    max-width: 430px;
    width: 100%;
}

.step-row {
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 1.4rem;
    margin-bottom: 2.4rem;
}

.step-row span {
    color: #a19a92;
    font-size: .67rem;
    font-weight: 700;
    padding-bottom: .65rem;
    text-transform: uppercase;
}

.step-row .is-active {
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
    margin-bottom: -1px;
}

.step-row .is-complete {
    color: #4d755e;
}

.login-form-wrap h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    letter-spacing: 0;
    margin: 0 0 .65rem;
}

.form-intro {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
    margin: 0 0 1.7rem;
}

.login-error {
    background: #fff0f0;
    border: 1px solid #e5b8bb;
    border-left: 4px solid var(--accent);
    color: #7c1720;
    font-size: .8rem;
    margin-bottom: 1.2rem;
    padding: .8rem .9rem;
}

.field-group {
    margin-bottom: 1.15rem;
}

.field-group label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.field-group input {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    font-size: .94rem;
    min-height: 52px;
    outline: 0;
    padding: .8rem .9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.field-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 35, 47, .1);
}

.field-group input.is-invalid {
    border-color: var(--accent);
}

.mobile-input {
    letter-spacing: .08em;
}

.mobile-number {
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
}

.otp-input {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: .42em;
    text-align: center;
}

.field-error {
    color: var(--accent);
    display: block;
    font-size: .72rem;
    margin-top: .35rem;
}

.submit-button {
    align-items: center;
    background: var(--accent);
    border: 0;
    color: #fff;
    display: flex;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    justify-content: space-between;
    margin-top: .35rem;
    min-height: 52px;
    padding: .8rem 1rem;
    width: 100%;
}

.submit-button:hover:not(:disabled) {
    background: var(--accent-dark);
}

.submit-button:disabled {
    cursor: wait;
    opacity: .76;
}

.button-end {
    align-items: center;
    display: inline-flex;
    min-width: 18px;
}

.security-note {
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.5;
    margin: 1rem 0 0;
}

.admin-link {
    color: var(--muted);
    display: inline-block;
    font-size: .72rem;
    margin-top: 1rem;
    text-underline-offset: 3px;
}

.admin-link:hover {
    color: var(--accent);
}

.resend-section {
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: .35rem 1rem;
    grid-template-columns: 1fr auto;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.resend-section > p {
    color: var(--muted);
    font-size: .78rem;
    margin: 0;
}

.resend-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--accent);
    display: inline-flex;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    gap: .5rem;
    padding: .3rem 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.resend-button:hover:not(:disabled) {
    color: var(--accent-dark);
}

.resend-button:disabled {
    cursor: wait;
    opacity: .65;
}

.resend-count {
    color: #9a938b;
    font-size: .65rem;
    grid-column: 1 / -1;
}

.resend-section .resend-limit {
    color: var(--accent);
    grid-column: 1 / -1;
    font-weight: 600;
}

@media (max-width: 800px) {
    .member-login-page {
        grid-template-columns: 1fr;
    }

    .cinema-panel {
        min-height: 320px;
        padding: 1.5rem;
    }

    .cinema-copy h1 {
        font-size: clamp(1.8rem, 8vw, 2.7rem);
        max-width: 500px;
    }

    .location-line {
        display: none;
    }

    .login-panel {
        padding: 2.2rem 1.25rem 3rem;
    }
}

@media (max-width: 420px) {
    .cinema-panel {
        min-height: 290px;
    }

    .cinema-copy > p:last-child {
        font-size: .86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .field-group input {
        transition: none;
    }
}