/*
 * Innea Reserved Area – form styles
 *
 * Tokens copied from the live BeTheme build of innea-aesthetics.com so the
 * reserved area reads as part of the site rather than a bolted-on plugin:
 * Poiret One for display, Open Sans for copy, #02586d as the accent, and the
 * theme's own input focus treatment (#83b4bd border on #f8f9fa).
 */

.innea-page,
.innea-form,
.innea-notice {
    --innea-ink: #0a0a0a;
    --innea-heading: #00303c;
    --innea-accent: #02586d;
    --innea-accent-hover: #5d9aa9;
    --innea-muted: #626262;
    --innea-rule: #ebebeb;
    --innea-canvas: #f8f9fa;
    --innea-focus: #83b4bd;
    --innea-danger: #a4343a;
    --innea-radius: 3px;
    --innea-display: "Poiret One", "Century Gothic", "Trebuchet MS", sans-serif;
    --innea-body: "Open Sans", Helvetica, Arial, sans-serif;
}

/* ─── Page shell ──────────────────────────────────────────────────────────── */

/*
 * The theme drops the shortcode straight into the content column with no
 * spacing of its own, so the breathing room has to come from here.
 */
.innea-page {
    padding-block: clamp(3rem, 8vw, 6.5rem);
    font-family: var(--innea-body);
    color: var(--innea-ink);
}

.innea-page__header {
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
}

.innea-page__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--innea-focus);
}

.innea-page__title {
    margin: 0;
    font-family: var(--innea-display);
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--innea-heading);
}

/* Short rule under the heading: the one flourish, borrowed from the accent. */
.innea-page__title::after {
    content: "";
    display: block;
    width: 52px;
    height: 1px;
    margin: 1.35rem auto 0;
    background: var(--innea-accent);
}

.innea-page__intro {
    max-width: 46ch;
    margin: 1.5rem auto 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--innea-muted);
}

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

.innea-form {
    max-width: 640px;
    margin: 0 auto;
    font-family: var(--innea-body);
    color: var(--innea-ink);
}

/* ─── Fields ──────────────────────────────────────────────────────────────── */

.innea-form__field {
    margin-bottom: 1.5rem;
}

.innea-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.innea-form__field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--innea-heading);
}

.innea-form__field label small {
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--innea-muted);
}

.innea-form__field input[type="text"],
.innea-form__field input[type="email"],
.innea-form__field input[type="password"],
.innea-form__field select,
.innea-form__field textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--innea-rule);
    border-radius: var(--innea-radius);
    background-color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--innea-muted);
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.innea-form__field input::placeholder,
.innea-form__field textarea::placeholder {
    color: #a8a8a8;
}

/* Mirrors BeTheme's native focus state, so the two never look like two systems. */
.innea-form__field input:focus,
.innea-form__field select:focus,
.innea-form__field textarea:focus {
    outline: none;
    border-color: var(--innea-focus);
    background-color: var(--innea-canvas);
    color: var(--innea-accent);
}

.innea-form__field textarea {
    min-height: 8rem;
    resize: vertical;
}

.innea-form__field select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2302586d' stroke-width='1.5' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* ─── File inputs ─────────────────────────────────────────────────────────── */

.innea-form__field input[type="file"] {
    width: 100%;
    padding: 0.9rem;
    border: 1px dashed var(--innea-rule);
    border-radius: var(--innea-radius);
    background: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--innea-muted);
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.innea-form__field input[type="file"]:hover,
.innea-form__field input[type="file"]:focus {
    outline: none;
    border-color: var(--innea-focus);
    background-color: var(--innea-canvas);
}

.innea-form__field input[type="file"]::file-selector-button {
    margin-right: 0.9rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--innea-accent);
    border-radius: var(--innea-radius);
    background: transparent;
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--innea-accent);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.innea-form__field input[type="file"]::file-selector-button:hover {
    background: var(--innea-accent);
    color: #fff;
}

/* ─── Checkbox ────────────────────────────────────────────────────────────── */

.innea-form__field--checkbox label {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
    text-transform: none;
    color: var(--innea-muted);
    cursor: pointer;
}

.innea-form__field--checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    accent-color: var(--innea-accent);
    cursor: pointer;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.innea-form__submit {
    margin-top: 2rem;
}

.innea-form__submit button {
    padding: 0.85rem 2.4rem;
    border: 1px solid var(--innea-accent);
    border-radius: var(--innea-radius);
    background: var(--innea-accent);
    font-family: inherit;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.innea-form__submit button:hover,
.innea-form__submit button:focus-visible {
    background: var(--innea-heading);
    border-color: var(--innea-heading);
}

.innea-form__submit button.innea-button--ghost {
    background: transparent;
    color: var(--innea-accent);
}

.innea-form__submit button.innea-button--ghost:hover,
.innea-form__submit button.innea-button--ghost:focus-visible {
    background: var(--innea-accent);
    color: #fff;
}

.innea-form :focus-visible {
    outline: 2px solid var(--innea-focus);
    outline-offset: 2px;
}

.innea-form__footer {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
    color: var(--innea-muted);
}

/* Two footers in a row (forgot password, then register) are one block of
   secondary links, not two separate afterthoughts. */
.innea-form__footer + .innea-form__footer {
    margin-top: 0.45rem;
}

.innea-form__footer a,
.innea-notice a {
    color: var(--innea-accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.innea-form__footer a:hover,
.innea-notice a:hover {
    color: var(--innea-accent-hover);
}

/* The resend form sits above the login form: set apart, not competing with it. */
.innea-form--resend {
    margin-bottom: 2.5rem;
    padding: 1.5rem 1.5rem 1.75rem;
    border: 1px solid var(--innea-rule);
    border-radius: var(--innea-radius);
    background: var(--innea-canvas);
}

.innea-form--resend .innea-form__field:last-of-type,
.innea-form--resend .innea-form__submit {
    margin-bottom: 0;
}

.innea-form--resend .innea-form__submit {
    margin-top: 1.25rem;
}

/* ─── Notices ─────────────────────────────────────────────────────────────── */

.innea-notice {
    max-width: 640px;
    margin: 0 auto 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--innea-rule);
    border-left-width: 3px;
    border-radius: var(--innea-radius);
    background: var(--innea-canvas);
    font-family: var(--innea-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--innea-ink);
}

.innea-notice--success {
    border-left-color: var(--innea-accent);
}

.innea-notice--error {
    border-left-color: var(--innea-danger);
    color: var(--innea-danger);
}

.innea-notice--error a {
    color: var(--innea-danger);
}

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

@media (max-width: 600px) {
    .innea-form__row {
        grid-template-columns: 1fr;
    }

    .innea-page__title::after {
        margin-top: 1.1rem;
    }

    .innea-form__submit button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .innea-form *,
    .innea-form *::before,
    .innea-form *::after {
        transition: none !important;
    }
}

/* ─── Nav menu ────────────────────────────────────────────────────────────── */
/* Align injected items to match BeTheme's native items */

li.innea-private-menu > a,
li.innea-private-menu > a > span,
li.innea-login-menu > a,
li.innea-login-menu > a > span {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: inherit;
    margin: 0;
    padding: 0;
}
