MIF_E31232094/resources/views/auth/forgot-password.blade.php

129 lines
4.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>Lupa Password - 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="email"] {
width: 100%;
padding: 14px 16px;
border: 1.5px solid #e5e7eb;
border-radius: 10px;
font-size: 15px;
background: #f9fafb;
outline: none;
transition: border 0.2s;
}
input[type="email"]: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; }
.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>
</head>
<body>
<div class="card">
<div class="card-header">
<h1>SiPakarTebu</h1>
<p>Sistem Diagnosis Penyakit Tanaman Tebu</p>
</div>
<div class="card-body">
<h2>Lupa Password?</h2>
<p class="subtitle">Masukkan email terdaftar untuk menerima kode OTP</p>
@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.send-otp') }}">
@csrf
<label>Email</label>
<input type="email" name="email" value="{{ old('email') }}" placeholder="contoh@email.com" required>
<button type="submit" class="btn-submit">Kirim OTP</button>
</form>
<a href="{{ route('login') }}" class="back-link"> Kembali ke Login</a>
</div>
</div>
</body>
</html>