/**
 * AWP SMS Integration CSS
 * Matches AWP OTP Login form styling
 */

/* SMS Tab styling - matches AWP tabs */
.awp-tab-list .awp-tab[data-tab="sms_otp"] {
    flex: 1;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: 500;
    color: #6f7899;
    border-radius: 8px;
    font-size: 14px;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}

.awp-tab-list .awp-tab[data-tab="sms_otp"].active {
    background-color: #fff;
    color: #141b38;
    box-shadow: 0 0 0 1px #2c405e0f,0 1px 1px #2c405e0a,0 2px 4px #2c405e14;
}

.awp-tab-list .awp-tab[data-tab="sms_otp"]:hover {
    color: #141b38;
}

/* SMS Tab Pane - matches AWP structure */
.awp-tab-pane#sms_otp {
    display: none;
}

.awp-tab-pane#sms_otp.active {
    display: block;
}

/* SMS Form elements - matches AWP styling */
#awp-otp-login-form-sms .awp-form-group {
    margin-bottom: 16px;
}

#awp-otp-login-form-sms .awp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #434960;
    font-size: 12px;
    text-transform: capitalize;
}

#awp-otp-login-form-sms input[type="text"] {
    padding: 0 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: #fff;
    font-family: inherit;
    width: 100%;
    height: 48px;
    max-height: 48px;
}

#awp-otp-login-form-sms input[type="text"]:focus {
    border-color: #004444;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* SMS Buttons - matches AWP button styling */
#awp-otp-login-form-sms .awp-btn {
    width: 100%;
    height: 48px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all .2s ease-in-out;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    color: #fff;
    text-decoration: none !important;
}

#awp-otp-login-form-sms .awp-btn:hover {
    opacity: .8;
}

#awp-otp-login-form-sms .awp-btn [class*=" ri-"], 
#awp-otp-login-form-sms .awp-btn [class^="ri-"] {
    font-weight: 500 !important;
    font-size: 20px;
}

#awp-otp-login-form-sms .awp-submit-button {
    background-color: #22c55e;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease,color 0.3s ease;
}

#awp-otp-login-form-sms .awp-resend-otp-btn {
    background: #f1f1f1;
    color: #141b38 !important;
    border: 1px solid #ddd !important;
    margin-top: 8px;
}

/* SMS Messages - matches AWP message styling */
#awp_login_message_sms {
    margin: 16px 0;
    text-align: center;
}

#awp_login_message_sms .error {
    color: #b91c1c;
    font-weight: 600;
    background-color: #fecaca;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0;
    font-size: 14px;
}

#awp_login_message_sms .success {
    color: #15803d;
    font-weight: 600;
    background-color: #e0faec;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0;
    font-size: 14px;
}

/* SMS Edit button - matches AWP styling */
#awp-otp-login-form-sms .awp-edit-button {
    cursor: pointer;
    color: #05f;
    text-decoration: none;
    transition: opacity .5s ease;
}

#awp-otp-login-form-sms .awp-edit-button:hover {
    opacity: .7;
}

/* SMS Resend message - matches AWP styling */
#awp-otp-login-form-sms .awp-otp-resend {
    margin-top: 8px;
    font-size: 14px;
    color: #434960;
}

/* Signup SMS option - matches AWP radio button styling */
.awp-login-method-radio .awp-radio-button.sms {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 8px;
}

.awp-login-method-radio .awp-radio-button.sms:hover {
    border-color: #004444;
    background-color: #f8f9fa;
}

.awp-login-method-radio .awp-radio-button.sms input[type="radio"] {
    margin: 0;
}

.awp-login-method-radio .awp-radio-button.sms .awp-radio-icon {
    font-size: 20px;
    color: #475569;
}

.awp-login-method-radio .awp-radio-button.sms input[type="radio"]:checked + .awp-radio-icon {
    color: #22c55e;
}

/* Fallback indicator */
.awp-sms-fallback-used {
    color: #15803d !important;
}

.awp-sms-fallback-used::after {
    content: " (SMS Fallback)";
    font-size: 0.85em;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .awp-login-method-radio .awp-radio-button.sms {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
}

