/* ==========================================================================
   Goldriser — Premium Account Form
   Theme: White / Black / Gold
   ========================================================================== */

:root {
    --white: #ffffff;
    --ivory: #faf8f3;
    --ivory-2: #f4f1e9;
    --ink: #0b0b0b;
    --ink-soft: #2a2721;
    --muted: #6f6a5e;
    --muted-2: #9a9384;

    --gold: #b8860b;
    --gold-deep: #8a6508;
    --gold-light: #e6c65c;
    --gold-soft: #f3e7c8;

    --line: #e3ddce;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --shadow-card: 0 30px 70px -28px rgba(11, 11, 11, 0.28), 0 8px 24px -12px rgba(184, 134, 11, 0.18);
    --radius-card: 18px;
    --radius-field: 10px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ────────────────────────────────────────────────────────────────────────
   Page frame
   ──────────────────────────────────────────────────────────────────────── */

.page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(230, 198, 92, 0.14), transparent 60%),
        radial-gradient(900px 500px at 50% 110%, rgba(184, 134, 11, 0.10), transparent 60%),
        var(--ivory);
}

/* Soft floating gold ambience */
.ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.ambient--one {
    width: 420px;
    height: 420px;
    top: -140px;
    left: -120px;
    background: radial-gradient(circle, rgba(230, 198, 92, 0.55), transparent 70%);
}

.ambient--two {
    width: 460px;
    height: 460px;
    bottom: -180px;
    right: -140px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.40), transparent 70%);
}

.shell {
    position: relative;
    width: 100%;
    max-width: 520px;
    z-index: 1;
}

/* ────────────────────────────────────────────────────────────────────────
   Card
   ──────────────────────────────────────────────────────────────────────── */

.card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(227, 221, 206, 0.9);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 52px 52px 44px;
    overflow: hidden;
}

/* Gold hairline across the top of the card */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold-light) 50%, var(--gold-deep) 100%);
}

.card__header {
    text-align: center;
    margin-bottom: 34px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.brand__logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(184, 134, 11, 0.30));
}

.brand__name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
}

.card__title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(30px, 6vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.2px;
    color: var(--ink);
}

.card__subtitle {
    margin: 12px auto 0;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

/* ────────────────────────────────────────────────────────────────────────
   Status / feedback
   ──────────────────────────────────────────────────────────────────────── */

.status {
    margin-bottom: 24px;
}

.status__box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-field);
    font-size: 14px;
    line-height: 1.5;
}

.status__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.status__message {
    margin: 0;
    color: inherit;
}

.status__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.status__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--gold);
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.status__link:hover {
    background: var(--gold-light);
    box-shadow: 0 8px 22px -8px rgba(184, 134, 11, 0.5);
}

.status__link[hidden] {
    display: none;
}

.status--success .status__box {
    background: var(--gold-soft);
    border: 1px solid rgba(184, 134, 11, 0.35);
    color: var(--ink-soft);
}

.status--success .status__icon {
    background: var(--gold);
}

.status--success .status__icon::after {
    content: "";
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.status--error .status__box {
    background: #fbeeee;
    border: 1px solid rgba(155, 28, 28, 0.30);
    color: #7f1d1d;
}

.status--error .status__icon {
    background: #9b1c1c;
}

.status--error .status__icon::before,
.status--error .status__icon::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.status--error .status__icon::before { transform: rotate(45deg); }
.status--error .status__icon::after  { transform: rotate(-45deg); }

.status[hidden] { display: none; }

/* ────────────────────────────────────────────────────────────────────────
   Form
   ──────────────────────────────────────────────────────────────────────── */

.form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
}

.field__control {
    position: relative;
}

.field__input {
    width: 100%;
    padding: 15px 18px;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.45;
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius-field);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    resize: vertical;
}

.field__input::placeholder {
    color: var(--muted-2);
}

.field__input:hover {
    border-color: #cfc6b0;
}

.field__input:focus {
    background: var(--white);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.14);
}

.field__input--area {
    min-height: 128px;
}

/* ────────────────────────────────────────────────────────────────────────
   Button
   ──────────────────────────────────────────────────────────────────────── */

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
    padding: 16px 24px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: var(--radius-field);
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.button:hover {
    color: var(--ink);
    border-color: var(--gold);
    box-shadow: 0 12px 30px -10px rgba(184, 134, 11, 0.55);
    background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold-light) 50%, var(--gold-deep) 100%);
}

.button:active {
    transform: translateY(1px);
}

.button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.35);
}

.button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.button__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.button.is-loading .button__spinner {
    display: inline-block;
}

.button.is-loading .button__label {
    opacity: 0.85;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form__note {
    margin: -4px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted-2);
}

/* ────────────────────────────────────────────────────────────────────────
   Footer
   ──────────────────────────────────────────────────────────────────────── */

.footer {
    margin-top: 26px;
    text-align: center;
}

.footer__rule {
    display: block;
    width: 64px;
    height: 1px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer__text {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--muted-2);
}

/* ────────────────────────────────────────────────────────────────────────
   Responsive
   ──────────────────────────────────────────────────────────────────────── */

@media (max-width: 560px) {
    .page {
        padding: 24px 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .card {
        padding: 36px 24px 30px;
        border-radius: 14px;
    }

    .brand__logo {
        width: 78px;
        height: 78px;
    }

    .card__title {
        font-size: 28px;
    }

    .button {
        letter-spacing: 1.5px;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
