162 lines
5.0 KiB
PHP
162 lines
5.0 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Verifikasi OTP - SiPakarTebu</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
min-height: 100vh;
|
|
background-color: #f5f5f0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: 'Segoe UI', sans-serif;
|
|
}
|
|
.card {
|
|
background: white;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
max-width: 460px;
|
|
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
|
|
}
|
|
.card-header {
|
|
background: #2d6a4f;
|
|
padding: 40px 20px 30px;
|
|
text-align: center;
|
|
color: white;
|
|
}
|
|
.card-header h1 { font-size: 28px; font-weight: 700; }
|
|
.card-header p { font-size: 14px; opacity: 0.85; margin-top: 4px; }
|
|
.card-body { padding: 36px 40px; }
|
|
.card-body h2 { font-size: 22px; font-weight: 700; color: #1a1a1a; }
|
|
.card-body .subtitle { color: #666; font-size: 14px; margin-top: 4px; margin-bottom: 24px; }
|
|
.alert-error {
|
|
background: #fef2f2;
|
|
border: 1px solid #fca5a5;
|
|
color: #dc2626;
|
|
border-radius: 8px;
|
|
padding: 10px 14px;
|
|
font-size: 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.alert-success {
|
|
background: #f0fdf4;
|
|
border: 1px solid #86efac;
|
|
color: #16a34a;
|
|
border-radius: 8px;
|
|
padding: 10px 14px;
|
|
font-size: 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #374151;
|
|
margin-bottom: 6px;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
}
|
|
input[type="text"] {
|
|
width: 100%;
|
|
padding: 14px 16px;
|
|
border: 1.5px solid #e5e7eb;
|
|
border-radius: 10px;
|
|
font-size: 22px;
|
|
letter-spacing: 0.3em;
|
|
text-align: center;
|
|
background: #f9fafb;
|
|
outline: none;
|
|
transition: border 0.2s;
|
|
}
|
|
input[type="text"]:focus { border-color: #2d6a4f; background: white; }
|
|
.btn-submit {
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
padding: 14px;
|
|
background: #2d6a4f;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
.btn-submit:hover { background: #1e4d38; }
|
|
.btn-resend {
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
padding: 12px;
|
|
background: transparent;
|
|
color: #2d6a4f;
|
|
border: 1.5px solid #2d6a4f;
|
|
border-radius: 10px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
.btn-resend:hover { background: #f0fdf4; }
|
|
.back-link {
|
|
display: block;
|
|
text-align: center;
|
|
margin-top: 18px;
|
|
font-size: 14px;
|
|
color: #2d6a4f;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
.back-link:hover { text-decoration: underline; }
|
|
</style>
|
|
|
|
@if(session('otp_debug'))
|
|
<div class="mb-4 px-4 py-3 rounded-xl text-sm font-semibold text-center"
|
|
style="background:#fff9c4;color:#92400e;border:1px solid #fcd34d;">
|
|
<i class="fas fa-key mr-2"></i>{{ session('otp_debug') }}
|
|
</div>
|
|
@endif
|
|
|
|
</head>
|
|
<body>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h1>CaneDoc</h1>
|
|
<p>Sistem Diagnosis Penyakit Tanaman Tebu</p>
|
|
</div>
|
|
<div class="card-body">
|
|
<h2>Verifikasi OTP</h2>
|
|
<p class="subtitle">Masukkan kode 6 digit yang dikirim ke email kamu</p>
|
|
|
|
@if(session('otp_debug'))
|
|
<div class="alert-success">{{ session('otp_debug') }}</div>
|
|
@endif
|
|
|
|
@if(session('status'))
|
|
<div class="alert-success">{{ session('status') }}</div>
|
|
@endif
|
|
|
|
@if($errors->any())
|
|
<div class="alert-error">{{ $errors->first() }}</div>
|
|
@endif
|
|
|
|
<form method="POST" action="{{ route('password.otp.verify') }}">
|
|
@csrf
|
|
<label>Kode OTP</label>
|
|
<input type="text" name="otp" maxlength="6" placeholder="······" required autofocus>
|
|
<button type="submit" class="btn-submit">Verifikasi</button>
|
|
</form>
|
|
|
|
<form method="POST" action="{{ route('password.otp.resend') }}" style="margin-top:10px">
|
|
@csrf
|
|
<button type="submit" class="btn-resend">Kirim Ulang OTP</button>
|
|
</form>
|
|
|
|
<a href="{{ route('password.email') }}" class="back-link">← Kembali</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |