/* ====================================================================
   Westcan Forgot Password Form
   Matches the visual language of the Westcan User Registration plugin:
   square corners (border-radius: 0), brand red #B11F28, Arial.
   ==================================================================== */

.cfp-form-wrapper {
    max-width: 480px;
    background: #ffffff;
    padding: 30px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* ---- Heading & lede ---------------------------------------------- */
.cfp-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.cfp-form-subtitle {
    color: #7A7A7A;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

/* ---- Fields ------------------------------------------------------- */
.cfp-form-field {
    margin-bottom: 16px;
}

.cfp-form-wrapper label {
    display: block;
    color: #7A7A7A;
    font-size: 13px;
    margin-bottom: 4px;
}

.cfp-form-wrapper input[type="text"],
.cfp-form-wrapper input[type="email"],
.cfp-form-wrapper input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cfp-form-wrapper input[type="text"]:focus,
.cfp-form-wrapper input[type="email"]:focus,
.cfp-form-wrapper input[type="password"]:focus {
    outline: none;
    border-color: #B11F28;
    box-shadow: 0 0 0 2px rgba(177, 31, 40, 0.15);
}

/* ---- Submit button ----------------------------------------------- */
.cfp-form-wrapper input[type="submit"] {
    background-color: #B11F28;
    border: none;
    border-radius: 0;
    color: #fff;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cfp-form-wrapper input[type="submit"]:hover,
.cfp-form-wrapper input[type="submit"]:focus {
    background-color: #911920;
    outline: none;
}

/* ---- Notices ------------------------------------------------------ */
.cfp-notice {
    padding: 12px 14px;
    border-radius: 0;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.cfp-notice--success {
    background-color: #e7f9f0;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.cfp-notice--error {
    background-color: #ffe5e5;
    color: #B11F28;
    border-left: 4px solid #B11F28;
}

.cfp-notice--error div + div {
    margin-top: 4px;
}

/* ---- Bottom row: link + submit ----------------------------------- */
.cfp-form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
}

/* Brand-red link, matching registration form */
.cfp-form-buttons a,
.cfp-form-buttons a:link,
.cfp-form-buttons a:visited {
    color: #B11F28;
    text-decoration: underline;
    font-size: 14px;
}

.cfp-form-buttons a:hover,
.cfp-form-buttons a:focus {
    color: #911920;
}

/* Used for the "Request New Link" CTA on expired-link state */
.cfp-button-link {
    background-color: #B11F28;
    color: #fff !important;
    text-decoration: none !important;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s ease;
    display: inline-block;
}

.cfp-button-link:hover,
.cfp-button-link:focus {
    background-color: #911920;
    color: #fff !important;
}

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 600px) {
    .cfp-form-wrapper {
        padding: 22px 18px;
    }

    .cfp-form-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cfp-form-buttons span {
        text-align: center;
    }

    .cfp-form-wrapper input[type="submit"],
    .cfp-button-link {
        width: 100%;
        text-align: center;
    }
}
