:root {
    --bg-top: #f8fafc;
    --bg-bottom: #eef2f7;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: rgba(255, 255, 255, 0.92);
    --line: rgba(21, 38, 63, 0.12);
    --ink: #172033;
    --muted: #667085;
    --accent: #e84d4f;
    --accent-2: #1f7a8c;
    --accent-3: #f0a02f;
    --accent-soft: rgba(31, 122, 140, 0.12);
    --field-bg: rgba(255, 255, 255, 0.96);
    --field-border: rgba(21, 38, 63, 0.14);
    --success: #0c8e63;
    --danger: #cb3159;
    --shadow: 0 24px 60px rgba(21, 38, 63, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(31, 122, 140, 0.08), transparent 34%),
        linear-gradient(315deg, rgba(232, 77, 79, 0.1), transparent 32%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
 }

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(320px, 620px);
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
    padding: clamp(18px, 4vw, 34px);
    justify-content: center;
}

.auth-page--compact {
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
}

.auth-brand {
    display: grid;
    gap: 18px;
    align-content: center;
    padding: clamp(6px, 2vw, 14px);
}

.auth-brand__eyebrow {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.auth-brand__logo {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 16px 34px rgba(158, 88, 63, 0.18);
}

.auth-brand__title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
}

.auth-brand__title span {
    background: linear-gradient(135deg, #cf4a37, #f1a33a, #b93d7b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-brand__copy {
    margin: 0;
    max-width: 420px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
}

.auth-steps {
    display: grid;
    gap: 10px;
    padding: 18px 18px 0 0;
}

.auth-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-step strong {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(113, 53, 42, 0.1);
    color: var(--ink);
}

.auth-card {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100vh - 36px);
    display: grid;
    gap: 20px;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.82)),
        var(--panel);
    box-shadow: var(--shadow);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    backdrop-filter: blur(14px);
}

.auth-card::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.auth-card__header {
    display: grid;
    gap: 8px;
}

.auth-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #176675;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-card__title {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    line-height: 1.05;
}

.auth-card__copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 8px;
}

.field label,
.field legend {
    font-size: 0.92rem;
    font-weight: 700;
    color: #344054;
}

.field fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background-color 180ms ease, transform 180ms ease;
}

.password-toggle:hover {
    background: rgba(242, 93, 73, 0.1);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(242, 93, 73, 0.45);
    outline-offset: 2px;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #b48c82;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(242, 93, 73, 0.7);
    box-shadow: 0 0 0 4px rgba(31, 122, 140, 0.14);
}

.field-hint,
.form-note {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--muted);
}

.readonly-chip {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(113, 53, 42, 0.1);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.upload-preview {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px dashed rgba(113, 53, 42, 0.18);
}

.upload-preview.is-visible {
    display: flex;
}

.upload-preview img {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.04);
}

.upload-preview strong,
.upload-preview span {
    display: block;
}

.selection-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selection-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(113, 53, 42, 0.08);
    color: var(--muted);
}

.selection-chip input {
    width: auto;
    margin: 0;
}

.otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.otp-grid input {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 14px 0;
}

.summary-card,
.payment-card,
.info-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(113, 53, 42, 0.08);
}

.summary-card strong,
.payment-amount {
    font-size: 1.24rem;
}

.payment-link {
    color: #b1453f;
    font-weight: 700;
    word-break: break-word;
}

.payment-amount {
    color: #b1453f;
    font-weight: 800;
}

.form-message {
    min-height: 22px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--danger);
}

.form-message[data-state="success"] {
    color: var(--success);
}

.auth-button,
.ghost-button,
.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 18px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.auth-button {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 20px 40px rgba(31, 122, 140, 0.2);
}

.ghost-button,
.copy-button {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(113, 53, 42, 0.1);
}

.auth-button:hover,
.ghost-button:hover,
.copy-button:hover {
    transform: translateY(-2px);
}

.auth-button:disabled,
.ghost-button:disabled,
.copy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    color: var(--muted);
    text-align: center;
    font-size: 0.92rem;
}

.auth-footer a {
    color: #176675;
    font-weight: 800;
}

.auth-hero {
    min-height: min(720px, calc(100vh - 68px));
    display: grid;
    align-content: end;
    gap: 22px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(11, 23, 42, 0.18), rgba(11, 23, 42, 0.9)),
        url("1.jpg") center/cover;
    box-shadow: var(--shadow);
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 122, 140, 0.7), transparent 46%);
}

.auth-hero > * {
    position: relative;
    z-index: 1;
}

.auth-hero__media {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.auth-hero__media img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.auth-hero__content {
    display: grid;
    gap: 14px;
}

.auth-hero h1,
.auth-hero p {
    margin: 0;
}

.auth-hero h1 {
    max-width: 460px;
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    line-height: 0.98;
}

.auth-hero p {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.auth-feature-list span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.84rem;
    font-weight: 800;
}

@media (max-width: 980px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: 440px;
    }

    .auth-brand {
        gap: 12px;
        padding-bottom: 0;
    }

    .auth-card {
        width: 100%;
        max-height: none;
    }
}

@media (max-width: 720px) {
    .auth-hero {
        min-height: 360px;
        border-radius: 22px;
    }

    .auth-hero__media {
        width: 88px;
        height: 88px;
        border-radius: 18px;
    }

    .auth-hero__media img {
        width: 68px;
        height: 68px;
    }

    .form-grid--two {
        grid-template-columns: 1fr;
    }

    .otp-grid {
        gap: 8px;
    }

    .otp-grid input {
        font-size: 1.05rem;
    }
}

@media (max-width: 420px) {
    .auth-page {
        padding: 14px;
    }

    .auth-card {
        padding: 18px;
        border-radius: 20px;
    }

    .otp-grid {
        gap: 6px;
    }
}
