/**
 * Login With Phone Number - Frontend Styles
 *
 * @package LWP
 * @since 3.0.0
 */

/* ==========================================================================
   Form Container
   ========================================================================== */

form.ajax-auth {
    display: none;
    z-index: 999;
    min-width: 300px;
    max-width: 350px;
    padding: 40px 25px 25px;
    background-color: #ffffff;
    border-radius: 12px;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: #4a5568;
    margin: 30px auto;
    position: relative;
    font-size: 14px;
}

.lw-sticky form.ajax-auth {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.ajax-auth .lh1 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    color: #1a202c;
    font-family: inherit;
}

.ajax-auth h3 {
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    margin: 0;
    color: #2d3748;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.ajax-auth input:not(.lwp_scode),
.ajax-auth label,
.ajax-auth button {
    font-size: 15px;
    width: 100%;
    font-family: inherit;
    display: block;
    box-sizing: border-box;
}

.ajax-auth input {
    color: #1a202c;
}

/* Labels */
.lwp_labels {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

/* Text Inputs */
#lwp_login.ajax-auth input.lwp_username,
#lwp_activate.ajax-auth input.lwp_scode,
.ajax-auth input.lwp_up_password,
.ajax-auth input.lwp_auth_password {
    max-width: 100%;
    height: 44px;
    direction: ltr;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px 14px;
    font-size: 16px;
    background-color: #f7fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#lwp_login.ajax-auth input.lwp_username:focus,
#lwp_activate.ajax-auth input.lwp_scode:focus,
.ajax-auth input.lwp_up_password:focus,
.ajax-auth input.lwp_auth_password:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    background-color: #ffffff;
}

input.lwp_username::placeholder {
    color: #a0aec0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.submit_button {
    width: 100%;
    background-color: #4299e1;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit_button:hover {
    background-color: #3182ce;
}

.submit_button:active {
    transform: translateY(1px);
}

/* Secondary Buttons */
.submit_button.lwp_didnt_r_c,
.submit_button.forgot_password {
    background-color: transparent;
    color: #4299e1;
    border: 1px solid #4299e1;
}

.submit_button.lwp_didnt_r_c:hover,
.submit_button.forgot_password:hover {
    background-color: #ebf8ff;
}

/* Disabled State */
.submit_button.lwp_disable {
    border: 1px solid #cbd5e0 !important;
    background-color: #edf2f7 !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   Status Message
   ========================================================================== */

.ajax-auth p.status {
    text-align: center;
    margin: -10px 0 16px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    display: none;
    background-color: #fef3cd;
    color: #856404;
}

/* ==========================================================================
   Form Sections
   ========================================================================== */

.lwp-form-box {
    margin-bottom: 8px;
}

.lwp-form-box-bottom {
    clear: both;
    display: block;
    width: 100%;
}

.lwp-inside-form-input {
    margin-bottom: 16px;
}

.lwp_top_activation {
    text-align: center;
}

.lwp_timer {
    font-size: 28px;
    font-weight: 700;
    color: #4299e1;
    margin-bottom: 16px;
}

.lwp_scode_parent {
    margin-bottom: 8px;
}

/* ==========================================================================
   Divider & Links
   ========================================================================== */

.ajax-auth .lwp_line {
    width: 100%;
    display: block;
    margin: 20px 0 12px;
    background-color: #e2e8f0;
    height: 1px;
    border: none;
}

.lwp_bottom_activation {
    text-align: center;
    margin-top: 8px;
}

.lwp_bottom_activation a {
    color: #4299e1;
    text-decoration: none;
    font-size: 14px;
}

.lwp_bottom_activation a:hover {
    text-decoration: underline;
}

/* RTL Support */
.rtl .lwp_bottom_activation {
    text-align: center;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.lwp_logo_parent {
    text-align: center;
    margin-bottom: 16px;
}

.lwp_logo_parent img {
    max-height: 60px;
    width: auto;
}

/* ==========================================================================
   Overlay
   ========================================================================== */

.lwp_login_overlay {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    z-index: 998;
    top: 0;
    left: 0;
    backdrop-filter: blur(4px);
}

/* ==========================================================================
   Close Button
   ========================================================================== */

.ajax-auth a.close {
    display: none;
    color: #a0aec0;
    font-size: 24px;
    position: absolute;
    right: 16px;
    top: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ajax-auth a.close:hover {
    color: #4a5568;
}

.lw-sticky .ajax-auth a.close {
    display: block;
}

/* ==========================================================================
   Validation
   ========================================================================== */

.ajax-auth label.error {
    display: none !important;
}

.ajax-auth input.error {
    border-color: #fc8181;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.lwp_none {
    display: none !important;
}

/* Number Input Spin Button Hide */
input.lwp_username::-webkit-outer-spin-button,
input.lwp_username::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.lwp_username {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 400px) {
    form.ajax-auth {
        min-width: auto;
        margin: 16px;
        padding: 24px 20px;
    }
}

