/* === Athanor Audio palette (matches the Lithomancer plugin) === */
:root {
    --bg:           #1a1a2e;     /* plugin bgColour */
    --card-bg:      #20203a;
    --card-border:  #2d2d4c;
    --text:         #f4f4f8;
    --muted:        #8a8aab;
    --accent:       #c9a227;     /* plugin stoneColour (gold) */
    --accent-soft:  #6a5acd;     /* plugin mainColour (slate purple) */
    --error:        #d96a6a;
    --success:      #6acd9a;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body {
    /* Subtle dot texture on background */
    background-image:
        radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 22px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.card {
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    text-align: center;
}

/* === Logo === */
.logo {
    width: 132px;
    height: 132px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #0a0a15;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-fallback {
    display: none;             /* shown by JS onerror if logo image is missing */
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-align: center;
    padding: 0 12px;
}

/* === Headings === */
.title {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--text);
}

.tagline {
    margin: 0 0 24px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.subhead {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

/* === Form === */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

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

.field span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input {
    height: 44px;
    padding: 0 14px;
    background: #15152b;
    color: var(--text);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    font-family: inherit;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.submit {
    margin-top: 8px;
    height: 48px;
    background: var(--accent);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 80ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.submit:hover {
    background: #d8b138;
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}

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

.submit:disabled {
    opacity: 0.6;
    cursor: progress;
    box-shadow: none;
}

/* Honeypot — visually hidden but still posts when bots fill it. */
.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.status {
    margin: 6px 0 0;
    font-size: 13px;
    min-height: 18px;
    text-align: center;
}

.status.error   { color: var(--error); }
.status.success { color: var(--success); }

/* === Footer === */
.footer {
    margin-top: 28px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .card { padding: 32px 22px 24px; }
    .logo { width: 108px; height: 108px; }
    .title { font-size: 24px; }
}
