/* =============================================
   DelayBuddy Affiliate Registration
   Loads after affiliate-dashboard.css (dependency
   on its handle) and speaks its design language:
   dark #3B3A40 header, gold #EDB900 accent,
   hairline #E4E3EA cards on white.
   ============================================= */

/* --- Page layout: the two stock AffiliateWP forms as stacked cards --- */
/* The dashboard stylesheet already zeroes #brx-content .brxe-section and
   card-styles .affwp-form; what it does not have is this page's content
   wrapper -- registration renders .brxe-post-content where the dashboard
   renders .brxe-shortcode. Narrow, centered, card-rhythm gap. */
#brx-content .brxe-post-content {
    max-width: 460px;
    margin: 0 auto;
    padding: 40px 20px 64px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* --- Login page (049): the same 460px column on its .brxe-shortcode --- */
/* /login/ (page 151, AffiliateWP's login page) renders the stock login
   form inside .brxe-shortcode -- the wrapper affiliate-dashboard.css
   styles as the DASHBOARD's 700px content column with !important (its
   "Reset Bricks shortcode wrapper" rule). Scoped to the login page's
   body class AND re-asserted with !important at higher specificity
   (1-2-1: one id, two classes, one element, vs the dashboard rule's
   1-1-0), and this sheet loads after the dashboard sheet (handle
   dependency), so the narrowing wins here and ONLY here -- the
   dashboard page keeps its 700px column byte-for-byte. The form itself
   needs nothing new: the .affwp-form card/legend/label/input/button/
   lost-password rules in this sheet are form-wide and already cover the
   login form. Values mirror the registration column above -- the flex
   gap has no second card to space here, but keeping the two columns
   identical is the point. */
body.page-id-151 #brx-content .brxe-shortcode {
    max-width: 460px !important;
    margin: 0 auto !important;
    padding: 40px 20px 64px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* --- AffiliateWP prints each form's title as a fieldset legend --- */
#brx-content .affwp-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}
#brx-content .affwp-form legend {
    /* The dashboard's card-heading scale (15px / 600 / #3B3A40). */
    padding: 0;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #3B3A40;
    line-height: 1.3;
}

/* --- Field rows: bare <p> wrappers, theme margins evened out --- */
#brx-content .affwp-form fieldset > p {
    margin: 0 0 12px;
}
#brx-content .affwp-form fieldset > p:last-child {
    margin-bottom: 0;
}

/* --- Labels: the dashboard's uppercase micro-label idiom --- */
#brx-content .affwp-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6F6D78;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
/* "(required)" reads as a quiet suffix, not shouted caps. */
#brx-content .affwp-form label .required {
    font-size: 10px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #B0AEB8;
}

/* --- Inputs --- */
/* Extends the dashboard's input rule to password fields (its settings form
   has none) and drops its max-width: 400px cap -- a full-width field inside
   a 460px card is the registration form's own rhythm. Same values otherwise.
   line-height/height are explicit because the theme forces a 40px line on
   inputs, which would inflate the fields (the fight 018 documented on the
   range filter's date inputs). */
#brx-content .affwp-form input[type="text"],
#brx-content .affwp-form input[type="email"],
#brx-content .affwp-form input[type="password"] {
    width: 100%;
    max-width: none;
    height: auto;
    line-height: 1.4;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #3B3A40;
    background: #F7F7FB;
    border: 1.5px solid #E4E3EA;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    margin: 0;
}
#brx-content .affwp-form input:focus {
    border-color: #EDB900;
}

/* --- Remember Me: the dashboard's notification-checkbox idiom --- */
#brx-content .affwp-form label.affwp-user-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #3B3A40;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    margin: 2px 0 4px;
}
#brx-content .affwp-form label.affwp-user-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: none;
    accent-color: #EDB900;
    cursor: pointer;
    margin: 0;
}

/* --- Submit: the gold button, full-width as the card's closing action --- */
#brx-content .affwp-form input[type="submit"].button {
    width: 100%;
    height: auto;
    line-height: 1.4;
    padding: 10px 20px;
    background: #EDB900;
    color: #3B3A40;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: 1.5px solid #EDB900;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
#brx-content .affwp-form input[type="submit"].button:hover {
    background: #D9A800;
    border-color: #D9A800;
}

/* --- Lost your password? --- */
#brx-content .affwp-form .affwp-lost-password {
    margin: 2px 0 0;
}
#brx-content .affwp-form .affwp-lost-password a {
    color: #EDB900;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}
#brx-content .affwp-form .affwp-lost-password a:hover {
    color: #D9A800;
    text-decoration: underline;
}

/* --- Notices (success after submit, errors on validation) --- */
#brx-content .affwp-notice {
    margin: 0 0 4px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.5;
    border: 1.5px solid #E4E3EA;
    border-radius: 6px;
    background: #F7F7FB;
    color: #6F6D78;
}
#brx-content .affwp-notice.affwp-error {
    border-color: #F0C6CB;
    background: #FDF1F2;
    color: #B03A4A;
}
#brx-content .affwp-notice.affwp-success {
    border-color: #C4E6CF;
    background: #F1FAF4;
    color: #2F7D4F;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    #brx-content .brxe-post-content {
        padding: 24px 16px 40px;
    }
    /* Login page column, same mobile rhythm (049); !important + the
       page-id scope out-rank the dashboard sheet's own mobile
       .brxe-shortcode padding rule the same way the desktop rule does. */
    body.page-id-151 #brx-content .brxe-shortcode {
        padding: 24px 16px 40px !important;
    }
}
