/* HJ Login Frontend Styles */

.hj-otp-login-section,
.hj-otp-register-section {
    margin-top: 30px;
    padding-top: 20px;
}

.hj-login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.hj-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.hj-login-divider span {
    background: #fff;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
}

.hj-otp-form h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.hj-test-mode-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.hj-form-step {
    transition: all 0.3s ease;
}

.hj-hidden {
    display: none;
}

.hj-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.hj-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.hj-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.hj-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.hj-otp-form .form-row {
    margin-bottom: 15px;
}

.hj-otp-form .button,
.hj-otp-form .button-secondary {
    margin-right: 10px;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    line-height: 1.4;
    border: none;
    transition: all 0.3s ease;
}

.hj-otp-form .button {
    background: #0073aa;
    color: #fff;
}

.hj-otp-form .button:hover {
    background: #005a87;
}

.hj-otp-form .button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.hj-otp-form .button-secondary {
    background: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
}

.hj-otp-form .button-secondary:hover {
    background: #fafafa;
    border-color: #999;
}

.hj-otp-form input[type="tel"],
.hj-otp-form input[type="text"],
.hj-otp-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.hj-otp-form input[type="tel"]:focus,
.hj-otp-form input[type="text"]:focus,
.hj-otp-form input[type="email"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Loading states */
.hj-loading {
    opacity: 0.6;
    pointer-events: none;
}

.hj-loading .button::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: hj-spin 1s linear infinite;
}

@keyframes hj-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hj-otp-form .form-row-first,
    .hj-otp-form .form-row-last {
        width: 100%;
        float: none;
    }
    
    .hj-otp-form .button,
    .hj-otp-form .button-secondary {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}
