/**
 * Set Password Widget styles.
 * File: includes/assets/css/set-password.css
 *
 * Selectors are deliberately scoped through .set-password-container rather
 * than styling the element classes on their own. A single class loses to
 * the theme's own `button` and `input` rules, which is why the submit
 * button first rendered in the theme's red instead of the brand gradient.
 * Two levels is enough to win without reaching for !important, and still
 * leaves Elementor's Style tab controls (which inline their selectors on
 * the widget wrapper, a higher specificity again) able to override.
 */
.set-password-container {
    font-family: 'Rubik', 'Inter', 'Segoe UI', Roboto, sans-serif;
}

.set-password-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    /* No max-width by default, matching account-deletion.css -- fills the
       column it is placed in so the live page and the Elementor editor's
       preview canvas agree. The Style tab's Card > Max Width control is
       there for a boxed-in look. */
}

.set-password-container .set-password-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1F2936;
}

.set-password-container .set-password-description {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Capped so the fields read as a form rather than stretching the full
   width of whatever column the widget is dropped into -- at full page
   width a password input is absurdly long and hard to scan. */
.set-password-form {
    max-width: 420px;
}

.set-password-field {
    margin-bottom: 1.25rem;
}

.set-password-container .set-password-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1F2936;
}

.set-password-container .set-password-field input[type="password"] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: #1F2936;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.set-password-container .set-password-field input[type="password"]:focus {
    outline: none;
    border-color: #23B5B5;
    box-shadow: 0 0 0 3px rgba(35, 181, 181, 0.15);
}

.set-password-container .set-password-field small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #6b7280;
}

.set-password-container .set-password-submit-btn {
    display: inline-block;
    width: auto;
    margin: 0.25rem 0 0 0;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #23B5B5 0%, #425AAD 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.set-password-container .set-password-submit-btn:hover:not(:disabled),
.set-password-container .set-password-submit-btn:focus:not(:disabled) {
    opacity: 0.9;
    color: #fff;
}

.set-password-container .set-password-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.set-password-container .set-password-message {
    margin: 1.25rem 0 0 0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #d1fae5;
    color: #065f46;
}

.set-password-container .set-password-message.is-error {
    background: #fee2e2;
    color: #991b1b;
}

/* The button shown in place of the form once the password is saved, and
   on the expired-link card. Matched to the submit button so the card does
   not change character between states. */
.set-password-container .set-password-next {
    margin: 1.25rem 0 0 0;
}

.set-password-container .set-password-next-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #23B5B5 0%, #425AAD 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.set-password-container .set-password-next-btn:hover,
.set-password-container .set-password-next-btn:focus {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .set-password-container .set-password-submit-btn,
    .set-password-container .set-password-next-btn {
        width: 100%;
        text-align: center;
    }
}
