/* ==================================================
   Simple Membership – Unified Styling System
   Registration, Login, Reset, Logged-In, Edit Profile
   ================================================== */

/* ----------------------------------
   Containers
   ---------------------------------- */

.swpm-registration-widget-form,
.swpm-login-widget-form,
.swpm-pw-reset-widget-form,
.swpm-login-widget-logged,
.swpm-edit-profile-form {
    max-width: 520px;
    margin: 0 auto;
}

/* ----------------------------------
   Labels
   ---------------------------------- */

.swpm-form label,
.swpm-login-widget-form label,
.swpm-pw-reset-widget-form label,
.swpm-login-widget-logged .swpm-logged-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ----------------------------------
   Inputs & Selects
   ---------------------------------- */

.swpm-form input[type="text"],
.swpm-form input[type="password"],
.swpm-form select,
.swpm-login-widget-form input[type="text"],
.swpm-login-widget-form input[type="password"],
.swpm-pw-reset-widget-form input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Focus state */
.swpm-form input:focus,
.swpm-form select:focus,
.swpm-login-widget-form input:focus,
.swpm-pw-reset-widget-form input:focus {
    border-color: var(--el-blue);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
    outline: none;
}

/* ----------------------------------
   Form spacing
   ---------------------------------- */

.swpm-form .swpm-form-row {
    margin-bottom: 1rem;
}

.swpm-login-widget-form .swpm-login-form-inner > div {
    margin-bottom: 0.9rem;
}

.swpm-pw-reset-widget-form .swpm-pw-reset-widget-inside > div {
    margin-bottom: 1rem;
}

/* ----------------------------------
   Read-only/value rows (profile view)
   ---------------------------------- */

.swpm-form .swpm-form-input-wrap:not(:has(input)):not(:has(select)) {
    padding: 0.45rem 0;
    font-size: 0.95rem;
    color: #444;
}

/* ----------------------------------
   Checkboxes
   ---------------------------------- */

.swpm-form .swpm-terms-row,
.swpm-form .swpm-pp-row,
.swpm-login-widget-form .swpm-password-input-visibility,
.swpm-login-widget-form .swpm-remember-me {
    font-size: 0.9rem;
}

.swpm-form input[type="checkbox"],
.swpm-login-widget-form input[type="checkbox"] {
    margin-right: 0.35em;
}

/* ----------------------------------
   Buttons
   ---------------------------------- */

.swpm-submit,
.swpm-login-form-submit,
.swpm-pw-reset-submit {
    background-color: var(--el-green);
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.swpm-submit:hover,
.swpm-login-form-submit:hover,
.swpm-pw-reset-submit:hover {
    background-color: var(--el-blue);
}

.swpm-submit:active,
.swpm-login-form-submit:active,
.swpm-pw-reset-submit:active {
    transform: translateY(1px);
}

/* Center submit sections */
.swpm-registration-submit-section,
.swpm-login-submit,
.swpm-pw-reset-submit-button,
.swpm-edit-profile-submit-section {
    text-align: center;
    margin-top: 1.5rem;
}

/* ----------------------------------
   Links
   ---------------------------------- */

.swpm-registration-widget-form a,
.swpm-login-widget-form a,
.swpm-pw-reset-widget-form a,
.swpm-login-widget-logged a,
.swpm-edit-profile-form a {
    color: var(--el-blue);
    text-decoration: underline;
}

/* Forgot password */
.swpm-forgot-pass-link {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

/* ----------------------------------
   Password reset processing message
   ---------------------------------- */

.swpm_pass_reset_processing_msg_section {
    text-align: center;
    font-size: 0.9rem;
    color: var(--el-blue);
    margin-top: 1rem;
}

/* ----------------------------------
   Logged-in status block
   ---------------------------------- */

.swpm-login-widget-logged {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
}

.swpm-login-widget-logged > div {
    margin-bottom: 0.75rem;
}

.swpm-login-widget-logged .swpm-logged-label {
    font-size: 0.85rem;
    color: #555;
}

.swpm-login-widget-logged .swpm-logged-value {
    font-size: 0.95rem;
}

.swpm-edit-profile-link,
.swpm-logged-logout-link {
    margin-top: 1rem;
    text-align: center;
}

.swpm-logged-logout-link a {
    color: var(--el-green);
    font-weight: 600;
}

/* ----------------------------------
   Error handling (registration & edit)
   ---------------------------------- */

.swpm-form .swpm-form-row.error input,
.swpm-form .swpm-form-row.error select {
    border-color: #cc0000;
}

.swpm-form .swpm-form-row.error .swpm-form-desc {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #cc0000;
}

/* ----------------------------------
   Simple Membership – Status Messages
   ---------------------------------- */

.swpm-ty-page-registration-logged-in {
    max-width: 520px;
    margin: 2rem auto;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Neutral / informational message */
.swpm-ty-page-registration-logged-in.swpm-yellow-box {
    background-color: #f8f9f9; /* soft neutral, not actually yellow */
    border: 1px solid var(--el-blue);
    color: #333;
}

/* Emphasize username line slightly */
.swpm-ty-page-registration-logged-in p {
    margin-bottom: 0.5rem;
}

.swpm-ty-page-registration-logged-in strong,
.swpm-ty-page-registration-logged-in .swpm-username {
    font-weight: 600;
}

/* ----------------------------------
   Logged-in action buttons
   ---------------------------------- */

.swpm-edit-profile-link a,
.swpm-logged-logout-link a {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

/* Edit Profile = primary action */
.swpm-edit-profile-link a {
    background-color: var(--el-blue);
    color: #fff;
}

/* Logout = secondary / exit action */
.swpm-logged-logout-link a {
    background-color: var(--el-green);
    color: #fff;
}

/* Hover states */
.swpm-edit-profile-link a:hover,
.swpm-logged-logout-link a:hover {
    filter: brightness(0.95);
}

/* Active press */
.swpm-edit-profile-link a:active,
.swpm-logged-logout-link a:active {
    transform: translateY(1px);
}

/* Login form: keep checkbox and label on one line */
.swpm-login-widget-form .swpm-password-input-visibility,
.swpm-login-widget-form .swpm-remember-me {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Undo block-label behavior for login checkboxes */
.swpm-login-widget-form .swpm-password-toggle-checkbox-label,
.swpm-login-widget-form .swpm-rememberme-label {
    display: inline;
    margin: 0;
    font-weight: normal;
}

/** 
 * Clients's Corner Content
*/
.el-clients-corner-links {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.el-clients-corner-links li {
    padding: 0.125em 0 0.125em 1em;
    margin: 0;
}

.el-clients-corner-links li a {
    text-decoration: none;
    text-decoration-color: var(--el-light-link);
}

.el-clients-corner-links li a:hover {
    text-decoration: underline;
    text-decoration-color: var(--el-light-link);
}

.el-clients-corner-links li::before {
    content: "▸ ";
    font-size: 0.9rem;
    color: var(--el-green);
    line-height: 1;
}