/* =========================================
   Palimart Mobile Auth - Stylesheet
========================================= */

#custom-auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
}

/* Mobile Friendly Inputs - 16px prevents iOS auto-zoom */
#custom-auth-container input[type="tel"],
#otp-popup input[type="text"] {
    width: 100%;
    padding: 14px 15px;
    font-size: 16px; 
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 1px;
}

/* Thumb-Friendly Buttons */
#custom-auth-container .button,
#otp-popup .button {
    width: 100%;
    min-height: 50px; 
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

#submit_mobile_btn, #verify_otp_btn { background-color: #000; color: #fff; }
#biometric_btn { background-color: #4CAF50; color: #fff; }
#social_google_btn { background-color: #DB4437; color: #fff; }

/* OTP & Biometric Popup Modal */
#otp-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    width: 90%;
    max-width: 360px;
    text-align: center;
}

#otp-popup h3 {
    margin-top: 0;
    font-size: 22px;
    color: #333;
}

#otp-message {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

#generated-otp-display {
    background: #f0fdf4;
    padding: 12px;
    border-radius: 8px;
    letter-spacing: 4px;
    border: 1px dashed #4CAF50;
    color: #4CAF50;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

#otp-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

/* Biometric Buttons Flexbox */
.biometric-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.biometric-actions button {
    flex: 1;
    margin-bottom: 0;
}
@media (max-width: 380px) {
    .biometric-actions {
        flex-direction: column;
    }
}
