/* ==========================================================================
   Engage360 Auth Forms — Brand Stylesheet
   ========================================================================== */

.engage360-auth-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.engage360-auth-header { text-align: center; margin-bottom: 32px; }
.engage360-auth-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #00466d;
    margin-bottom: 8px;
    letter-spacing: -.3px;
}
.engage360-auth-header p { color: #64748b; font-size: 15px; margin: 0; }

/* ── Notices ─────────────────────────────────────────────────────────────── */
.engage360-notice { padding: 12px 16px; border-radius: 7px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; font-weight: 500; }
.engage360-notice--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.engage360-notice--success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* ── Fields ──────────────────────────────────────────────────────────────── */
.engage360-field { margin-bottom: 20px; }
.engage360-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #00466d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.engage360-field label span { color: #dc2626; }

.engage360-field input[type="text"],
.engage360-field input[type="email"],
.engage360-field input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    background: #fafcff;
    color: #1a2332;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.engage360-field input:focus {
    outline: none;
    border-color: #006a91;
    box-shadow: 0 0 0 3px rgba(0,106,145,.12);
    background: #fff;
}
.engage360-field input.is-error { border-color: #dc2626; }

.engage360-form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.engage360-field--checkbox label {
    display: flex; align-items: center; gap: 10px;
    font-weight: 500; cursor: pointer;
    text-transform: none; letter-spacing: 0; font-size: 14px; color: #1a2332;
}
.engage360-field--checkbox input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #00466d; }

/* ── Password Strength ───────────────────────────────────────────────────── */
.engage360-password-strength {
    height: 4px; border-radius: 2px; margin-top: 6px;
    background: #e2e8f0; transition: all .3s;
}
.engage360-password-strength.weak   { background: linear-gradient(to right, #dc2626 30%, #e2e8f0 30%); }
.engage360-password-strength.fair   { background: linear-gradient(to right, #d97706 60%, #e2e8f0 60%); }
.engage360-password-strength.strong { background: #66bb6a; }

/* ── Forgot Password ─────────────────────────────────────────────────────── */
.engage360-forgot-link {
    float: right;
    font-weight: 500;
    font-size: 13px;
    color: #006a91;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Plan Selection ──────────────────────────────────────────────────────── */
.engage360-plan-selection > label { font-size: 16px; margin-bottom: 14px; }
.engage360-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.engage360-plan  { position: relative; }
.engage360-plan input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.engage360-plan__label {
    display: block;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all .15s;
    height: 100%;
    box-sizing: border-box;
    background: #fafcff;
}
.engage360-plan input:checked + .engage360-plan__label {
    border-color: #00466d;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(0,70,109,.1);
}
.engage360-plan--featured .engage360-plan__label { border-color: #006a91; }

.engage360-plan__badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: #00466d;
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.engage360-plan__header  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.engage360-plan__name    { font-size: 17px; font-weight: 800; color: #1a2332; }
.engage360-plan__price   { font-size: 14px; color: #64748b; font-weight: 500; }
.engage360-plan__desc    { font-size: 13px; color: #64748b; margin: 0 0 12px; line-height: 1.4; }
.engage360-plan__limits  { list-style: none; padding: 0; margin: 0 0 12px; }
.engage360-plan__limits li { font-size: 13px; color: #1a2332; padding: 3px 0; }

.engage360-plan__prorate {
    background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px;
    padding: 10px; font-size: 12px; color: #78350f; line-height: 1.4; margin-top: 10px;
}
.engage360-plan__prorate strong { display: block; margin-bottom: 4px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.engage360-btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 13px 28px;
    border-radius: 7px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; border: 2px solid transparent;
    transition: all .15s; text-decoration: none;
    font-family: inherit;
}
.engage360-btn--primary { background: #00466d; color: #fff; border-color: #00466d; }
.engage360-btn--primary:hover { background: #003a5c; border-color: #003a5c; box-shadow: 0 4px 14px rgba(0,70,109,.25); }
.engage360-btn--primary:disabled { background: #7ba8bf; border-color: #7ba8bf; cursor: not-allowed; box-shadow: none; }
.engage360-btn--full { width: 100%; margin-top: 10px; }

/* ── Auth Switch ─────────────────────────────────────────────────────────── */
.engage360-auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: #64748b; }
.engage360-auth-switch a { color: #006a91; font-weight: 700; text-decoration: none; }
.engage360-auth-switch a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 580px) {
    .engage360-form-row--half,
    .engage360-plans { grid-template-columns: 1fr; }
    .engage360-plan__badge { position: static; transform: none; display: inline-block; margin-bottom: 8px; }
}
