@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --bg: #071811;
    --felt: #0d291d;
    --panel: #102b20;
    --gold: #d8b66a;
    --gold-light: #f3d995;
    --text: #f5f1e8;
    --muted: #9aaa9e;
    --border: rgba(216, 182, 106, 0.22);
    --red: #e47777;
    --green: #68d7a0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    background:
        radial-gradient(ellipse at 50% 35%, #20533a 0%, transparent 65%),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.012) 0px,
            rgba(255,255,255,0.012) 1px,
            transparent 1px,
            transparent 6px
        ),
        var(--bg);
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 42px 36px;
    background: linear-gradient(145deg, #143726, #0b2018);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(216,182,106,0.09);
    border-radius: 14px;
    pointer-events: none;
}

.card-suits {
    display: flex;
    justify-content: center;
    gap: 22px;
    font-size: 24px;
    color: var(--gold);
    opacity: 0.75;
    margin-bottom: 25px;
}

.card-suits span:nth-child(2),
.card-suits span:nth-child(4) {
    color: var(--red);
}

.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 16px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-size: 36px;
    color: var(--gold);
    box-shadow: 0 0 25px rgba(216,182,106,0.12);
}

.brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 29px;
    letter-spacing: 2px;
    color: var(--gold-light);
    margin: 0 0 8px;
}

.brand p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

form label {
    display: block;
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: 600;
}

form input {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-radius: 9px;
    border: 1px solid #31503e;
    background: #071b12;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(216,182,106,0.12);
}

form small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

.primary-btn {
    width: 100%;
    margin-top: 28px;
    padding: 14px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #f1d58e, #c39a49);
    color: #152016;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.auth-footer {
    margin: 25px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.auth-footer a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.flash {
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(228,119,119,0.4);
    background: rgba(228,119,119,0.09);
    color: #ffc0c0;
    border-radius: 8px;
    font-size: 13px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 22px;
    }

    .brand h1 {
        font-size: 25px;
    }
}

/* Creator credit */

.creator-credit {
    text-align: center;
    margin: 22px auto 16px;
    padding: 0 12px;
    font-size: 0.78rem;
    color: #a4b5aa;
    letter-spacing: 0.04em;
}

.creator-credit strong {
    color: #c5a45d;
    font-weight: 600;
}

.creator-credit {
    margin: 24px auto 0;
    padding-top: 15px;
    border-top: 1px solid rgba(197, 164, 93, 0.15);
    font-size: 0.75rem;
    text-align: center;
}
