/* 
 * Professional Auth UI Styles for NexaShop
 */

.nxs-sms-loginform {
    max-width: 420px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.title-loginbox {
    text-align: center;
    margin-bottom: 25px;
}

.title-loginbox span {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    position: relative;
    padding-bottom: 10px;
}

.title-loginbox span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #007bff;
    border-radius: 3px;
}

.login-sms-message {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.phone-loginbox {
    display: block;
    position: relative;
}

.phone-loginbox input {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: left;
    direction: ltr;
}

.phone-loginbox input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.stm-login-sms-btn,
.stm-sms-confirm--submit {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stm-login-sms-btn:hover,
.stm-sms-confirm--submit:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.stm-login-sms-btn[disabled],
.stm-sms-confirm--submit[disabled] {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.stm-change-email {
    display: inline-block;
    font-size: 14px;
    color: #007bff;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.stm-change-email:hover {
    color: #0056b3;
}

.stm-change-email i {
    vertical-align: middle;
}

.stm-sms-confirm--title {
    font-size: 15px;
    color: #444;
    text-align: center;
    margin-bottom: 20px;
}

.stm-sms-confirm--input input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.stm-sms-confirm--input input:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.stm-sms-confirm--bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
}

.stm-sms-confirm--timer-holder {
    color: #666;
}

#stm-counter {
    color: #e74c3c;
    font-weight: bold;
    direction: ltr;
    display: inline-block;
}

.stm-sms-confirm--retrieve {
    background: none;
    border: none;
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.stm-sms-confirm--retrieve:hover {
    color: #0056b3;
    text-decoration: underline;
}

.stm-sms-confirm--retrieve.d-none {
    display: none;
}

/* Animations for loading states */
.stm-form-sms {
    position: relative;
}

.stm-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Validation styles */
.input-error {
    border-color: #e74c3c !important;
}

#email_phone_error {
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 15px;
    display: block;
}

/* Password Form specific */
#stm-forgot-password-btn:hover {
    text-decoration: underline;
}

/* Make sure modal content blends well */
.modal-content .nxs-sms-loginform {
    box-shadow: none;
    padding: 10px;
}
