:root {
    --bg-top: #edf4ff;
    --bg-bottom: #ffe7f5;
    --panel: rgba(248, 250, 255, 0.78);
    --panel-strong: rgba(255, 255, 255, 0.94);
    --line: rgba(101, 115, 197, 0.15);
    --ink: #1e1b4b;
    --muted: #6d6a92;
    --accent: #3b82f6;
    --accent-2: #ec4899;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --field-bg: rgba(248, 250, 255, 0.96);
    --field-border: rgba(126, 138, 218, 0.22);
    --success: #0f9f77;
    --danger: #d63384;
    --shadow: 0 24px 60px rgba(95, 110, 201, 0.18);
}

* {
    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:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.16), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(236, 72, 153, 0.16), transparent 22%),
        radial-gradient(circle at 76% 84%, rgba(139, 92, 246, 0.14), transparent 24%),
        linear-gradient(135deg, var(--bg-top), var(--bg-bottom));
 }

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

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(320px, 560px);
    gap: clamp(20px, 5vw, 56px);
    align-items: center;
    padding: clamp(18px, 4vw, 34px);
}

.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(95, 110, 201, 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, #3b82f6, #8b5cf6, #ec4899);
    -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.82);
    border: 1px solid var(--line);
    color: var(--ink);
}

.auth-card {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 36px);
    display: grid;
    gap: 20px;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(240, 245, 255, 0.78)),
        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: #a63b99;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-card__title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    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: #4d4a86;
}

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

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    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(59, 130, 246, 0.1);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

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

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

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(59, 130, 246, 0.62);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.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.82);
    border: 1px solid var(--line);
    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.78);
    border: 1px dashed rgba(101, 115, 197, 0.2);
}

.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.8);
    border: 1px solid var(--line);
    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.78);
    border: 1px solid var(--line);
}

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

.payment-link {
    color: var(--accent-2);
    font-weight: 700;
    word-break: break-word;
}

.payment-amount {
    color: var(--accent-2);
    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(95, 110, 201, 0.24);
}

.ghost-button,
.copy-button {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
}

.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: var(--accent-2);
    font-weight: 800;
}

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

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

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

@media (max-width: 720px) {
    .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: 24px;
    }

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