@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Outfit:wght@400;500;600&display=swap");

:root {
    --pgm-black: #050505;
    --pgm-black-soft: #12100c;
    --pgm-panel: #0c0a08;
    --pgm-gold: #d4af37;
    --pgm-gold-soft: #f0d78c;
    --pgm-gold-dim: #9a7518;
    --pgm-cream: #f7f1e3;
    --pgm-muted: #cbbfa3;
    --pgm-line: rgba(212, 175, 55, 0.42);
    --pgm-field: #1a1610;
}

html, body {
    margin: 0;
    min-height: 100vh;
    background: #070707;
}

.pgm-auth,
.pgm-home {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 10% 10%, rgba(212, 175, 55, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 90%, rgba(212, 175, 55, 0.1), transparent 50%),
        var(--pgm-black);
    color: var(--pgm-cream);
    font-family: "Outfit", system-ui, sans-serif;
}

.pgm-home {
    display: flex;
    flex-direction: column;
}

.pgm-home__nav,
.pgm-home__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 6vw;
}

.pgm-home__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: inherit;
    text-decoration: none;
}

.pgm-home__brand img {
    height: 3.25rem;
    width: auto;
}

.pgm-home__mark {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.28em;
    font-size: 0.82rem;
    color: var(--pgm-gold);
}

.pgm-home__hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 6vw 4rem;
}

.pgm-home__copy h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 600;
    line-height: 1.08;
    margin: 0 0 1rem;
}

.pgm-home__kicker {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--pgm-gold);
    letter-spacing: 0.32em;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.pgm-home__lead {
    max-width: 34rem;
    color: var(--pgm-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.pgm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f1d36a, var(--pgm-gold) 48%, #a9841d);
    color: #1a1404;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 0;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.28);
}

.pgm-btn:hover {
    filter: brightness(1.06);
}

.pgm-btn--ghost {
    background: transparent;
    color: var(--pgm-gold-soft);
    border: 1px solid var(--pgm-line);
    box-shadow: none;
}

.pgm-home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.pgm-home__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 2.5rem;
    max-width: 32rem;
}

.pgm-home__feature {
    border: 1px solid var(--pgm-line);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.9rem 1rem;
    border-radius: 1rem;
}

.pgm-home__feature strong {
    display: block;
    color: var(--pgm-gold-soft);
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.pgm-home__feature span {
    color: var(--pgm-muted);
    font-size: 0.82rem;
}

.pgm-home__logo-wrap {
    display: flex;
    justify-content: center;
}

.pgm-home__logo-frame {
    width: min(100%, 28rem);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pgm-line);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.18), transparent 62%),
        var(--pgm-black-soft);
    box-shadow: inset 0 0 0 8px rgba(0, 0, 0, 0.35);
}

.pgm-home__logo-frame img {
    width: min(78%, 18rem);
    height: auto;
}

.pgm-home__footer {
    color: var(--pgm-muted);
    font-size: 0.82rem;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.pgm-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.pgm-auth__brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3.5rem;
    border-right: 1px solid var(--pgm-line);
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.2), transparent 42%),
        var(--pgm-black);
}

.pgm-auth__brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pgm-auth__back {
    color: var(--pgm-gold-soft);
    text-decoration: none;
    font-size: 0.88rem;
}

.pgm-auth__back--mobile {
    display: none;
    margin-bottom: 1.25rem;
}

.pgm-auth__brand-main {
    text-align: center;
}

.pgm-auth__brand-main img {
    width: min(70%, 16rem);
    margin: 0 auto 1.5rem;
}

.pgm-auth__brand-main h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.pgm-auth__brand-main p {
    color: var(--pgm-muted);
    margin: 0;
}

.pgm-auth__brand-foot {
    color: var(--pgm-muted);
    font-size: 0.82rem;
}

.pgm-auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: var(--pgm-panel);
}

.pgm-auth__card {
    width: min(100%, 26rem);
}

.pgm-auth__card h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.15rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
}

.pgm-auth__card .pgm-auth__lead {
    color: var(--pgm-muted);
    margin-bottom: 1.75rem;
}

.pgm-auth .fi-simple-layout,
.pgm-auth .fi-simple-main-ctn,
.pgm-auth .fi-simple-main,
.pgm-auth .fi-simple-page {
    background: transparent !important;
    box-shadow: none !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pgm-auth .fi-simple-header {
    display: none !important;
}

.pgm-auth .fi-fo-field-wrp-label,
.pgm-auth .fi-fo-field-wrp-label span,
.pgm-auth .fi-fo-field-wrp-label .text-gray-950,
.pgm-auth .fi-checkbox-label,
.pgm-auth .fi-fo-checkbox-list-option-label,
.pgm-auth label span {
    color: var(--pgm-cream) !important;
}

.pgm-auth .fi-fo-field-wrp-label sup,
.pgm-auth .text-danger-600,
.pgm-auth .text-danger-400 {
    color: var(--pgm-gold) !important;
}

.pgm-auth .fi-input-wrp {
    background: var(--pgm-field) !important;
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.55) !important;
}

.pgm-auth .fi-input-wrp:focus-within {
    box-shadow: inset 0 0 0 2px var(--pgm-gold) !important;
}

.pgm-auth .fi-input,
.pgm-auth .fi-fo-text-input input,
.pgm-auth input[type="email"],
.pgm-auth input[type="password"],
.pgm-auth input[type="text"] {
    background: transparent !important;
    color: var(--pgm-cream) !important;
    border-color: transparent !important;
    caret-color: var(--pgm-gold);
}

.pgm-auth .fi-input::placeholder,
.pgm-auth input::placeholder {
    color: var(--pgm-muted) !important;
    opacity: 0.85;
}

.pgm-auth .fi-input-wrp-icon,
.pgm-auth .fi-input-wrp-suffix button,
.pgm-auth .fi-input-wrp-suffix svg,
.pgm-auth .fi-icon-btn-icon {
    color: var(--pgm-gold-soft) !important;
}

.pgm-auth .fi-checkbox-input {
    background: var(--pgm-field) !important;
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.7) !important;
    color: var(--pgm-gold) !important;
    accent-color: var(--pgm-gold);
}

.pgm-auth .fi-checkbox-input:checked {
    background: var(--pgm-gold) !important;
    color: #1a1404 !important;
}

.pgm-auth .fi-btn-primary,
.pgm-auth button[type="submit"] {
    background: linear-gradient(180deg, #f1d36a, var(--pgm-gold) 48%, #a9841d) !important;
    color: #1a1404 !important;
    border: 0 !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28) !important;
}

.pgm-auth .fi-btn-primary:hover,
.pgm-auth button[type="submit"]:hover {
    filter: brightness(1.06);
}

.pgm-auth .fi-fo-field-wrp-error-message {
    color: #f0c2c2 !important;
}

@media (max-width: 900px) {
    .pgm-home__hero,
    .pgm-auth {
        grid-template-columns: 1fr;
    }

    .pgm-auth__brand {
        display: none;
    }

    .pgm-auth__back--mobile {
        display: inline-block;
    }

    .pgm-home__logo-wrap {
        order: -1;
    }

    .pgm-home__logo-frame {
        aspect-ratio: 1;
        max-width: 18rem;
        margin: 0 auto 1.5rem;
    }
}
