/home/awneajlw/.trash/verify-otp.php
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VERIFY OTP - OPTI SLIP</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
margin: 0;
position: relative;
overflow-x: hidden;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
opacity: 0.3;
pointer-events: none;
}
.container {
max-width: 100%;
width: 100%;
margin: 0;
padding: 0;
position: relative;
z-index: 1;
}
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(16, 185, 129, 0.95);
backdrop-filter: blur(10px);
padding: 20px 30px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-title {
color: white;
font-size: 20px;
font-weight: 600;
letter-spacing: 0.5px;
}
.back-btn {
color: white;
font-size: 20px;
text-decoration: none;
transition: all 0.3s ease;
padding: 8px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
}
.back-btn:hover {
color: #f0f0f0;
transform: translateX(-3px);
background: rgba(255, 255, 255, 0.2);
}
.main-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 24px;
padding: 60px 50px;
text-align: center;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
width: 100%;
max-width: 100%;
margin: 100px 20px 20px;
border: 1px solid rgba(255, 255, 255, 0.3);
position: relative;
}
.main-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #10b981, #059669, #10b981);
border-radius: 24px 24px 0 0;
}
.logo-container {
margin-bottom: 50px;
position: relative;
}
.logo {
width: 100px;
height: 100px;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 25px;
box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1);
position: relative;
animation: float 3s ease-in-out infinite;
}
.logo::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(135deg, #10b981, #059669, #10b981);
border-radius: 50%;
z-index: -1;
opacity: 0.3;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
}
.logo-icon {
font-size: 40px;
color: white;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.logo-text {
color: #1f2937;
font-size: 32px;
font-weight: 700;
letter-spacing: 3px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 10px;
}
.description {
color: #6b7280;
font-size: 18px;
line-height: 1.7;
margin-bottom: 50px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.otp-container {
margin-bottom: 40px;
position: relative;
}
.otp-input {
width: 100%;
padding: 20px 25px;
border: 2px solid #e5e7eb;
border-radius: 16px;
font-size: 24px;
text-align: center;
letter-spacing: 12px;
font-weight: 700;
color: #1f2937;
background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
transition: all 0.4s ease;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
font-family: 'Inter', monospace;
}
.otp-input:focus {
outline: none;
border-color: #10b981;
background: white;
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.05);
transform: translateY(-2px);
}
.btn-proceed {
width: 100%;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
border: none;
padding: 20px;
border-radius: 16px;
font-size: 20px;
font-weight: 700;
cursor: pointer;
transition: all 0.4s ease;
margin-bottom: 25px;
position: relative;
overflow: hidden;
text-transform: uppercase;
letter-spacing: 1px;
}
.btn-proceed::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}
.btn-proceed:hover::before {
left: 100%;
}
.btn-proceed:hover {
background: linear-gradient(135deg, #059669 0%, #047857 100%);
transform: translateY(-3px);
box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}
.btn-proceed:active {
transform: translateY(-1px);
}
.resend-link {
color: #6b7280;
text-decoration: none;
font-size: 14px;
display: inline-block;
}
.resend-link:hover {
color: #10b981;
text-decoration: underline;
}
.otp-display {
background: #f3f4f6;
border: 2px solid #e5e7eb;
border-radius: 12px;
padding: 15px 20px;
margin-bottom: 20px;
font-family: monospace;
font-size: 16px;
letter-spacing: 3px;
color: #374151;
}
.demo-notice {
background: #dbeafe;
border: 1px solid #93c5fd;
border-radius: 8px;
padding: 10px;
margin-bottom: 20px;
font-size: 12px;
color: #1e40af;
}
/* Responsive Design */
@media (max-width: 768px) {
.main-card {
padding: 30px 20px;
margin: 20px;
}
.logo {
width: 60px;
height: 60px;
}
.logo-icon {
font-size: 24px;
}
.logo-text {
font-size: 20px;
}
.description {
font-size: 14px;
}
}
@media (max-width: 480px) {
.main-card {
padding: 20px 15px;
margin: 10px;
}
.logo {
width: 50px;
height: 50px;
}
.logo-icon {
font-size: 20px;
}
.logo-text {
font-size: 18px;
}
}
</style>
</head>
<body>
<div class="container">
<!-- Header -->
<div class="header">
<h1 class="page-title">verify otp</h1>
<a href="register.php" class="back-btn">
<i class="fas fa-arrow-left"></i>
</a>
</div>
<!-- Main Card -->
<div class="main-card">
<div class="logo-container">
<div class="logo">
<i class="fas fa-glasses logo-icon"></i>
</div>
<div class="logo-text">OPTI SLIP</div>
</div>
<p class="description">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
</p>
<?php if (isset($_GET['error']) && $_GET['error'] === 'invalid_otp'): ?>
<div class="alert alert-danger" style="background: #fee2e2; color: #dc2626; padding: 12px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #fecaca;">
<i class="fas fa-exclamation-triangle me-2"></i>
Invalid OTP. Please enter the correct 6-digit code.
</div>
<?php endif; ?>
<form method="POST" action="shop-registration-form.php">
<div class="otp-container">
<label class="form-label" style="color: #374151; font-weight: 500; margin-bottom: 8px; display: block; text-align: left;">Enter OTP</label>
<!-- Demo OTP Display -->
<div class="demo-notice">
<i class="fas fa-info-circle me-1"></i>
Demo OTP: <strong>123456</strong> (Use this for testing)
</div>
<input type="text" name="otp" class="otp-input" placeholder="••••••" maxlength="6" required>
</div>
<button type="submit" class="btn-proceed">PROCEED</button>
</form>
<a href="#" class="resend-link" onclick="resendOTP()">Resend</a>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
// OTP Input formatting
document.querySelector('.otp-input').addEventListener('input', function(e) {
// Remove any non-numeric characters
this.value = this.value.replace(/[^0-9]/g, '');
// Limit to 6 digits
if (this.value.length > 6) {
this.value = this.value.slice(0, 6);
}
});
// Auto-focus on page load
window.addEventListener('load', function() {
document.querySelector('.otp-input').focus();
});
// Resend OTP function
function resendOTP() {
alert('OTP resent! Check your email.');
// In real implementation, this would trigger an API call
}
// Simple form validation
document.querySelector('form').addEventListener('submit', function(e) {
const otp = document.querySelector('.otp-input').value;
if (otp.length !== 6) {
e.preventDefault();
alert('Please enter a 6-digit OTP');
return;
}
if (otp !== '123456') {
e.preventDefault();
alert('Invalid OTP. Please use: 123456');
return;
}
});
</script>
</body>
</html>