/* Styles for the Authyo OTP Register Form */
.authyo-otp-auth-register-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.authyo-otp-auth-register-form .form-row {
    margin-bottom: 18px;
}

.authyo-otp-auth-register-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.authyo-otp-auth-register-form input[type="text"],
.authyo-otp-auth-register-form input[type="email"],
.authyo-otp-auth-register-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Phone input wrapper styling */
.phone-input-wrapper {
    display: flex;
    gap: 5px;
    align-items: center;
}

.phone-input-wrapper select {
    width: 25%;
    min-width: 100px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.phone-input-wrapper input[type="text"] {
    width: 75%;
    flex: 1;
}

.authyo-otp-auth-register-form button {
    width: 100%;
    padding: 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.authyo-otp-auth-register-form button:hover {
    background: #135e96;
}

.authyo-otp-auth-register-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.authyo-otp-auth-register-form .message {
    margin: 10px 0 20px;
    padding: 12px 15px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
    line-height: 1.4;
}

.authyo-otp-auth-register-form .message p {
    margin: 0;
    padding: 0;
}

.authyo-otp-auth-register-form .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.authyo-otp-auth-register-form .message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Additional styling for better visibility */
#register-message {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    display: none;
}

#register-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block !important;
}

#register-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block !important;
}

#register-message p {
    margin: 0;
    padding: 0;
}

.authyo-otp-auth-register-form .otp-fields {
    display: none;
}

.authyo-otp-auth-register-form .otp-fields input[type="text"] {
    letter-spacing: 6px;
    text-align: center;
}

/* Resend OTP Section - High specificity for theme compatibility */
.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-otp-section {
    margin: 15px 0 !important;
    text-align: center !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-text {
    margin: 0 0 10px 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: block !important;
}

.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-methods-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* Fallback for themes that don't support CSS Grid */
@supports not (display: grid) {
    .authyo-otp-auth-container .authyo-otp-auth-register-form .resend-methods-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    
    .authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn {
        flex: 1 !important;
        min-width: calc(33.333% - 6px) !important;
        margin: 0 3px !important;
    }
}

.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn {
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 36px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
    text-decoration: none !important;
}

.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn:focus {
    outline: 2px solid #007cba !important;
    outline-offset: 2px !important;
    text-decoration: none !important;
}

.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn:disabled {
    background: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    text-decoration: none !important;
}

.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn:active {
    background: #dee2e6 !important;
    border-color: #adb5bd !important;
    text-decoration: none !important;
}

.authyo-otp-auth-register-form .number-preview {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Resend OTP Button with Timer */
.authyo-otp-auth-register-form .resend-otp-btn {
    width: 100% !important;
    padding: 10px 15px !important;
    background: #f0f0f1 !important;
    color: #2c3338 !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.authyo-otp-auth-register-form .resend-otp-btn:hover:not(:disabled) {
    background: #dcdcde !important;
    border-color: #50575e !important;
}

.authyo-otp-auth-register-form .resend-otp-btn:disabled {
    background: #f0f0f1 !important;
    color: #8c8f94 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.authyo-otp-auth-register-form .resend-otp-btn .timer {
    display: inline-block !important;
    font-weight: 500 !important;
}

/* Theme Override Styles - Ensure compatibility with popular themes */
.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn,
.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn:before,
.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn:after {
    all: unset !important;
    box-sizing: border-box !important;
}

.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn {
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    width: 100% !important;
    min-height: 36px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-family: inherit !important;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
    z-index: 1 !important;
}

@media (max-width: 600px) {
    .authyo-otp-auth-register-form {
        padding: 20px 15px;
    }
    
    .authyo-otp-auth-container .authyo-otp-auth-register-form .resend-methods-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    
    .authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn {
        padding: 10px 12px !important;
        font-size: 14px !important;
        min-height: 40px !important;
    }
}

/* Additional theme compatibility fixes */
.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-methods-grid * {
    box-sizing: border-box !important;
}

/* Ensure buttons don't inherit theme button styles */
.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn,
.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn:hover,
.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn:focus,
.authyo-otp-auth-container .authyo-otp-auth-register-form .resend-method-btn:active {
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
} 