/* Signup wizard styles. Plain, content-first. Same cream-paper palette
   as the rest of the site so apex feels like one piece with the
   memorials it spawns. */

.page-signup {
    background: #fbf7ee;
    color: #2d2417;
    font-family: 'Cormorant Garamond', Georgia, serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.signup-header {
    padding: 1rem 2rem;
}
.signup-header .brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: #5a4a3a;
    text-decoration: none;
}

.signup-main {
    flex: 1;
    max-width: 540px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}
.signup-main h1 {
    font-size: 2.4rem;
    font-weight: 400;
    margin: 0 0 0.5em;
    color: #2d2417;
}
.signup-lede {
    font-size: 1.15rem;
    color: #5a4a3a;
    margin-bottom: 2em;
    line-height: 1.5;
}

.signup-form fieldset {
    border: 1px solid #e0d8c5;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 0 0 1.5rem;
    background: #fff;
}
.signup-form legend {
    padding: 0 0.5em;
    color: #6b5d49;
    font-size: 1rem;
    font-weight: 600;
}

.signup-form label {
    display: block;
    margin-bottom: 1rem;
    color: #4a3e2e;
    font-size: 1rem;
}
.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"],
.signup-form select {
    display: block;
    width: 100%;
    margin-top: 0.4em;
    padding: 0.6em 0.7em;
    font-size: 1rem;
    font-family: inherit;
    color: #2d2417;
    background: #fbf7ee;
    border: 1px solid #d8cfb8;
    border-radius: 4px;
    box-sizing: border-box;
}
.signup-form input:focus,
.signup-form select:focus {
    outline: none;
    border-color: #8a9b6e;
    box-shadow: 0 0 0 3px rgba(138, 155, 110, 0.15);
}

.slug-row .slug-input {
    display: flex;
    align-items: stretch;
    margin-top: 0.4em;
}
.slug-row input[type="text"] {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-top: 0;
}
.slug-row .slug-suffix {
    background: #ede4cf;
    color: #5a4a3a;
    padding: 0.6em 0.7em;
    border: 1px solid #d8cfb8;
    border-left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 0.95em;
}

.slug-status {
    display: block;
    font-size: 0.9em;
    margin-top: 0.4em;
    min-height: 1.2em;
}
.slug-status.ok       { color: #2d4a13; }
.slug-status.err      { color: #8b3a2e; }
.slug-status.checking { color: #998; }

.hint {
    display: block;
    font-size: 0.88em;
    color: #998;
    margin-top: 0.3em;
    line-height: 1.4;
}

.cf-turnstile {
    margin: 0.5em 0;
}

.signup-actions {
    text-align: center;
    margin: 2em 0 1em;
}

.signup-form .btn,
.signup-sent .btn,
.signup-error .btn {
    display: inline-block;
    padding: 0.7em 2em;
    font-family: inherit;
    font-size: 1.05rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s;
}
.btn-primary {
    background: #5a4a3a;
    color: #fbf7ee;
    border-color: #5a4a3a;
}
.btn-primary:hover { background: #3d3225; }
.btn-ghost {
    background: transparent;
    color: #5a4a3a;
    border-color: #5a4a3a;
}
.btn-ghost:hover { background: rgba(90, 74, 58, 0.08); }

.signup-fineprint {
    text-align: center;
    margin-top: 1em;
}

.flash {
    padding: 0.7em 1em;
    border-radius: 4px;
    margin: 0 0 1em;
}
.flash.err { background: #f6e2dd; color: #8b3a2e; border: 1px solid #d4a097; }
.flash.ok  { background: #e0eecf; color: #2d4a13; border: 1px solid #a9c389; }

/* Hero photo picker on /admin/settings — visual preview + link instead
   of the old "paste an attachment ID" textbox. */
.hero-photo-picker {
    margin: 1rem 0;
    padding: 1rem;
    background: #fbf7ee;
    border: 1px solid #e0d8c5;
    border-radius: 6px;
}
.hero-photo-picker .label-text {
    display: block;
    font-weight: 600;
    color: #4a3e2e;
    margin-bottom: 0.6em;
}
.hero-photo-picker .hero-preview img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 0 0.7em;
}
.hero-photo-picker .hero-empty {
    padding: 1rem;
    border: 2px dashed #d4cdb8;
    border-radius: 4px;
    color: #5a4a3a;
    font-size: 1rem;
    margin: 0;
}

/* Inline field-level errors from the AJAX submit. Each gets attached
   under the offending input's <label>; the input also receives
   aria-invalid="true" which we visually highlight. */
.field-error {
    display: block;
    color: #8b3a2e;
    font-size: 0.88em;
    margin-top: 0.4em;
    line-height: 1.4;
}
.signup-form input[aria-invalid="true"],
.signup-form select[aria-invalid="true"] {
    border-color: #c66a4a;
    box-shadow: 0 0 0 3px rgba(198, 106, 74, 0.12);
}

.signup-sent, .signup-error {
    text-align: center;
    padding-top: 3rem;
}

.signup-footer {
    padding: 2rem;
    text-align: center;
    color: #998;
    font-size: 0.95rem;
}
.signup-footer a { color: #6b5d49; }
