/**
 * AdRevv frontend forms — signup, login, onboarding.
 * v0.8.0
 *
 * Mirrors the portal's visual language (gold accent #DD9300, white cards,
 * understated borders) but lives on the front-end where the theme controls
 * the surrounding layout. We try to set sensible defaults without fighting
 * the parent theme — every selector is namespaced under .adrevv-public-
 * so it can't accidentally style the theme's elements.
 */

.adrevv-public-card {
    max-width: 480px;
    margin: 40px auto;
    padding: 32px 36px;
    background: #ffffff;
    border: 1px solid #e3e6eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}
.adrevv-public-card--wide {
    max-width: 640px;
}
.adrevv-public-card--note {
    text-align: center;
}

.adrevv-public-card__head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f2f5;
}
.adrevv-public-card__head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
}
.adrevv-public-card__head p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.adrevv-public-form {
    margin: 0;
}
.adrevv-public-field {
    margin-bottom: 16px;
}
.adrevv-public-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.adrevv-public-field input[type="text"],
.adrevv-public-field input[type="email"],
.adrevv-public-field input[type="password"],
.adrevv-public-field input[type="tel"],
.adrevv-public-field select,
.adrevv-public-field textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.adrevv-public-field input:focus,
.adrevv-public-field select:focus,
.adrevv-public-field textarea:focus {
    outline: none;
    border-color: #DD9300;
    box-shadow: 0 0 0 3px rgba(221, 147, 0, 0.18);
}
.adrevv-public-field textarea {
    resize: vertical;
    min-height: 96px;
}
.adrevv-public-field small {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.adrevv-public-field--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.adrevv-public-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 400 !important;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
}
.adrevv-public-checkbox input { margin: 0; }

.adrevv-public-grid {
    display: grid;
    gap: 12px;
}
.adrevv-public-grid--2 {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
    .adrevv-public-grid--2 { grid-template-columns: 1fr; }
}

.adrevv-public-actions {
    margin-top: 24px;
}
.adrevv-public-btn {
    display: inline-block;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
    font-family: inherit;
}
/* v0.8.3: select `a.adrevv-public-btn--primary` (and all link states)
   to bump specificity from (0,1,0) to (0,1,1). Most parent themes style
   `a` with a colored link rule that previously beat our plain class
   selector — the gold button would render with dark theme link text
   instead of white. Including :link :visited :hover :focus :active
   ensures no state slips back to the theme default. */
.adrevv-public-btn--primary,
a.adrevv-public-btn--primary,
a.adrevv-public-btn--primary:link,
a.adrevv-public-btn--primary:visited {
    background: #DD9300;
    color: #ffffff;
    border-color: #DD9300;
}
.adrevv-public-btn--primary:hover,
.adrevv-public-btn--primary:focus,
a.adrevv-public-btn--primary:hover,
a.adrevv-public-btn--primary:focus,
a.adrevv-public-btn--primary:active {
    background: #C58300;
    border-color: #C58300;
    color: #ffffff;
}

.adrevv-public-link {
    color: #DD9300;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.adrevv-public-link:hover { text-decoration: underline; }

.adrevv-public-aside {
    margin-top: 18px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}
.adrevv-public-aside a {
    color: #DD9300;
    text-decoration: none;
    font-weight: 600;
}
.adrevv-public-aside a:hover { text-decoration: underline; }

.adrevv-public-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}
.adrevv-public-alert ul {
    margin: 0;
    padding-left: 18px;
}
.adrevv-public-alert li { margin: 2px 0; }
.adrevv-public-alert--error {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    color: #7f1d1d;
}

/* Honeypot. Visually hidden from real users, accessible to assistive tech
   left out (aria-hidden on the wrapper). Bots that parse the DOM will see
   it and many will fill it; real users won't. */
.adrevv-public-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
