/**
 * Auth Forms (Login, Register, Verify Pending)
 * Shared styling for authentication pages
 *
 * @package LustMich
 */

/* =============================================
   Auth Container
   ============================================= */
.lm-auth {
    max-width: 520px;
    margin: 30px auto 0;
    padding: 40px 20px 60px;
}
.lm-auth h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    color: #201712;
    margin: 0 0 36px;
}

/* =============================================
   Form Elements
   ============================================= */
.lm-auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}
.lm-auth-form input[type="text"],
.lm-auth-form input[type="email"],
.lm-auth-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E6E6E6;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
.lm-auth-form input:-webkit-autofill,
.lm-auth-form input:-webkit-autofill:hover,
.lm-auth-form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}
.lm-auth-form input:focus {
    outline: none;
    border-color: #A28573;
}
.lm-auth-form__field {
    margin-bottom: 20px;
}
.lm-auth-form__hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* =============================================
   Error Messages
   ============================================= */
.lm-auth-form__error {
    background: #fef0f0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #721c24;
    line-height: 1.5;
}
.lm-auth-form__mx-error {
    text-align: center;
    padding: 24px 16px;
    margin-bottom: 24px;
    background: #FAF8F6;
    border: 1px solid #E8E0D8;
    border-radius: 8px;
}
.lm-auth-form__mx-error-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}
.lm-auth-form__mx-error-icon svg {
    width: 100%;
    height: 100%;
}
.lm-auth-form__mx-error-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   Submit Button
   ============================================= */
.lm-auth-form__submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #A28573;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 8px;
}
.lm-auth-form__submit:hover {
    background: #8a6f5f;
}

/* =============================================
   Password Eye Toggle
   ============================================= */
.lm-auth-form .lm-pw-wrap {
    position: relative;
    display: block;
}
.lm-auth-form .lm-pw-wrap input[type="password"],
.lm-auth-form .lm-pw-wrap input[type="text"] {
    padding-right: 44px;
}
.lm-auth-form .lm-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
    border: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a9a9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='4' y1='4' x2='20' y2='20'/%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}
.lm-auth-form .lm-pw-toggle.is-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a9a9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* =============================================
   CAPTCHA
   ============================================= */
.lm-auth-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lm-auth-captcha img {
    width: 50%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
}
.lm-auth-captcha input {
    width: 50%;
}

/* =============================================
   Remember Me + Links Row (Login)
   ============================================= */
.lm-auth-form__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
}
.lm-auth-form__row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    margin-bottom: 0;
    cursor: pointer;
}
.lm-auth-form__row a {
    color: #A28573;
    text-decoration: none;
}
.lm-auth-form__row a:hover {
    text-decoration: underline;
}

/* =============================================
   Footer Link (Login ↔ Register)
   ============================================= */
.lm-auth-form__footer {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #555;
}
.lm-auth-form__footer a {
    color: #A28573;
    font-weight: 500;
    text-decoration: none;
}
.lm-auth-form__footer a:hover {
    text-decoration: underline;
}

/* =============================================
   Verify Pending (Post-Registration)
   ============================================= */
.lm-verify-pending {
    max-width: 520px;
    margin: 80px auto 0;
    padding: 40px 20px 60px;
    text-align: center;
}
.lm-verify-pending__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: #A28573;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lm-verify-pending__icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    fill: none;
}
.lm-verify-pending h1 {
    font-size: 24px;
    font-weight: 400;
    color: #201712;
    margin: 0 0 16px;
}
.lm-verify-pending__text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 12px;
}
.lm-verify-pending__email {
    font-weight: 600;
    color: #201712;
}
.lm-verify-pending__note {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid #E6E6E6;
}
.lm-verify-pending__actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
}
.lm-verify-pending__actions a {
    text-decoration: none;
}

/* =============================================
   Verify Result (Email Verification Page)
   ============================================= */
.lm-verify-result {
    max-width: 520px;
    margin: 80px auto 0;
    padding: 40px 20px 60px;
    text-align: center;
}
.lm-verify-result__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lm-verify-result__icon--success { background: #A28573; }
.lm-verify-result__icon--warning { background: #f0ad4e; }
.lm-verify-result__icon--error { background: #ccc; }
.lm-verify-result__icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    fill: none;
}
.lm-verify-result h1 {
    font-size: 24px;
    font-weight: 400;
    color: #201712;
    margin: 0 0 16px;
}
.lm-verify-result__text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 28px;
}
.lm-verify-result__action {
    text-decoration: none;
}

/* =============================================
   Verify Banner (Edit Account Page)
   ============================================= */
.lm-verify-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 3px solid #A28573;
    padding: 18px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.lm-verify-banner__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: #A28573;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lm-verify-banner__icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
}
.lm-verify-banner__content {
    flex: 1;
    min-width: 0;
}
.lm-verify-banner__title {
    font-weight: 600;
    color: #201712;
    margin-bottom: 4px;
}
.lm-verify-banner__email {
    font-weight: 600;
    color: #201712;
}
.lm-verify-banner a {
    color: #A28573;
    font-weight: 500;
    text-decoration: none;
}
.lm-verify-banner a:hover {
    text-decoration: underline;
}
.lm-verify-banner__cancel {
    color: #999 !important;
}
.lm-verify-banner__status {
    margin-left: 8px;
    font-size: 13px;
}
.lm-verify-banner__status--success { color: #28a745; }
.lm-verify-banner__status--error { color: #dc3545; }

/* =============================================
   Sticky Bottom Verify Bar
   ============================================= */
.lm-verify-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #A28573;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    line-height: 1.5;
}
.lm-verify-bar a {
    color: #fff;
    font-weight: 400;
    text-decoration: underline;
}
.lm-verify-bar a:hover {
    opacity: 0.85;
}
body.lm-has-verify-bar {
    padding-bottom: 48px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .lm-auth {
        margin-top: 40px;
        padding: 24px 16px 40px;
    }
    .lm-auth h1 {
        font-size: 22px;
        margin-bottom: 28px;
    }
    .lm-verify-pending {
        margin-top: 40px;
        padding: 24px 16px 40px;
    }
    .lm-verify-pending h1 {
        font-size: 20px;
    }
    .lm-verify-pending__actions {
        flex-direction: column;
    }
    .lm-verify-pending__actions a {
        text-align: center;
    }
    .lm-verify-result {
        margin-top: 40px;
        padding: 24px 16px 40px;
    }
    .lm-verify-result h1 {
        font-size: 20px;
    }
}
