/* OneSender OTP Login Styles v1.2.0 */

#onesender-otp-login {
    max-width: 420px;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#onesender-otp-login h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

#onesender-otp-login p {
    margin-bottom: 15px;
    color: #5a6c7d;
    line-height: 1.5;
}

#onesender-otp-login label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

#onesender-otp-login input[type="tel"],
#onesender-otp-login input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8f9fa;
}

#onesender-otp-login input[type="tel"]:focus,
#onesender-otp-login input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

#onesender-otp-login input[type="tel"]:invalid,
#onesender-otp-login input[type="text"]:invalid {
    border-color: #e74c3c;
}

#onesender-otp-login input[type="tel"]::placeholder,
#onesender-otp-login input[type="text"]::placeholder {
    color: #95a5a6;
    font-size: 14px;
}

#onesender-otp-login .button {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#onesender-otp-login .button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

#onesender-otp-login .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

#onesender-otp-login .button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#onesender-otp-login .button.loading {
    pointer-events: none;
}

#onesender-otp-login .button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 1s ease infinite;
}

#onesender-otp-login .button-secondary {
    width: 48%;
    margin-right: 4%;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    font-size: 14px;
}

#onesender-otp-login .button-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
}

#onesender-otp-login .notice {
    padding: 14px 16px;
    margin: 16px 0;
    border-radius: 8px;
    border-left: 4px solid transparent;
    font-size: 14px;
    line-height: 1.4;
}

#onesender-otp-login .notice p {
    margin: 0;
    font-weight: 500;
}

#onesender-otp-login .notice-success {
    background: linear-gradient(135deg, #d5f4e6, #c8e6c9);
    color: #1b5e20;
    border-left-color: #4caf50;
}

#onesender-otp-login .notice-error {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border-left-color: #f44336;
}

/* Modal Styles */
#otp-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#otp-login-modal.show {
    display: flex;
}

#otp-login-modal #onesender-otp-login {
    position: relative;
    max-width: 420px;
    width: 90%;
    margin: 0;
    animation: slideInUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

#otp-login-modal .close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #95a5a6;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#otp-login-modal .close-modal:hover {
    color: #2c3e50;
    background: rgba(149, 165, 166, 0.1);
    transform: rotate(90deg);
}

/* Login Page Specific Styles */
#show-otp-login {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

#show-otp-login:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.3);
}

#show-otp-login:active {
    transform: translateY(0);
}

/* OTP Input Special Styling */
#otp_code {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
}

/* Step Transitions */
.otp-step {
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateX(0);
}

.otp-step[style*="display: none"] {
    opacity: 0;
    transform: translateX(-20px);
}

/* Responsive Design */
@media (max-width: 480px) {
    #onesender-otp-login {
        padding: 24px 20px;
        margin: 10px;
        border-radius: 8px;
    }
    
    #otp-login-modal #onesender-otp-login {
        width: 95%;
        margin: 10px;
    }
    
    #onesender-otp-login .button-secondary {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    #onesender-otp-login h3 {
        font-size: 18px;
    }
    
    #otp_code {
        font-size: 20px;
        letter-spacing: 4px;
    }
}

@media (max-width: 360px) {
    #onesender-otp-login {
        padding: 20px 16px;
    }
    
    #onesender-otp-login input[type="tel"],
    #onesender-otp-login input[type="text"] {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    #onesender-otp-login .button {
        padding: 12px 16px;
        font-size: 14px;
    }
}

