SIPDAM/samooapk/resources/views/auth/forgot-password.blade.php

332 lines
11 KiB
PHP

<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lupa Password - SIPDAM</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Plus Jakarta Sans', Arial, sans-serif;
min-height: 100vh;
display: flex;
background: linear-gradient(160deg, #e8f5eb 0%, #f2faf4 40%, #e4f3f8 100%);
}
.left-panel {
width: 55%;
background: #1a5c2a;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 40px;
position: relative;
overflow: hidden;
}
.left-panel::before {
content: '';
position: absolute;
top: -100px; right: -100px;
width: 400px; height: 400px;
background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
border-radius: 50%;
}
.left-panel::after {
content: '';
position: absolute;
bottom: -80px; left: -80px;
width: 350px; height: 350px;
background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
border-radius: 50%;
}
.left-logo {
position: relative; z-index: 2;
margin-bottom: 40px;
}
.left-logo img {
height: 120px;
width: auto;
object-fit: contain;
mix-blend-mode: screen;
filter: brightness(1.2);
}
.left-title {
position: relative; z-index: 2;
color: #fff;
font-size: 28px;
font-weight: 800;
text-align: center;
line-height: 1.3;
margin-bottom: 14px;
}
.left-desc {
position: relative; z-index: 2;
color: rgba(255,255,255,0.75);
font-size: 14px;
text-align: center;
line-height: 1.7;
max-width: 340px;
margin-bottom: 40px;
}
.left-info-box {
position: relative; z-index: 2;
background: rgba(255,255,255,0.12);
border: 1px solid rgba(255,255,255,0.2);
border-radius: 16px;
padding: 24px;
max-width: 320px;
width: 100%;
}
.left-info-box .info-icon {
width: 48px; height: 48px;
background: rgba(255,255,255,0.2);
border-radius: 12px;
display: flex; align-items: center; justify-content: center;
margin-bottom: 14px;
}
.left-info-box h4 {
color: #fff;
font-size: 15px;
font-weight: 700;
margin-bottom: 8px;
}
.left-info-box p {
color: rgba(255,255,255,0.7);
font-size: 13px;
line-height: 1.6;
}
.right-panel {
width: 45%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 50px;
}
.forgot-box {
width: 100%;
max-width: 400px;
}
.forgot-header {
margin-bottom: 32px;
}
.forgot-header .tirta-logo {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 28px;
}
.forgot-header .tirta-logo img {
width: 48px; height: 48px;
object-fit: contain;
}
.forgot-header .tirta-logo-text .name {
font-size: 15px;
font-weight: 700;
color: #1a5c2a;
line-height: 1.2;
}
.forgot-header .tirta-logo-text .sub {
font-size: 11px;
color: #1e6fa8;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
}
.forgot-header .icon-wrap {
width: 56px; height: 56px;
background: #e8f5eb;
border-radius: 16px;
display: flex; align-items: center; justify-content: center;
margin-bottom: 20px;
}
.forgot-header h2 {
font-size: 26px;
font-weight: 800;
color: #1a2e1c;
margin-bottom: 8px;
}
.forgot-header p {
font-size: 14px;
color: #6b8c72;
line-height: 1.6;
}
.form-group { margin-bottom: 20px; }
.form-group label {
display: block;
font-size: 13px;
font-weight: 600;
color: #1a2e1c;
margin-bottom: 8px;
}
.form-group input {
width: 100%;
padding: 13px 16px;
border: 1.5px solid #d1e8d4;
border-radius: 12px;
font-size: 14px;
font-family: inherit;
color: #1a2e1c;
background: #fff;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
border-color: #3a9e52;
box-shadow: 0 0 0 3px rgba(58,158,82,0.12);
}
.form-group input::placeholder { color: #a0b8a4; }
.btn-submit {
width: 100%;
padding: 14px;
background: linear-gradient(135deg, #2d7a3e, #1a5c2a);
color: #fff;
border: none;
border-radius: 12px;
font-size: 15px;
font-weight: 700;
font-family: inherit;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
box-shadow: 0 6px 20px rgba(42,120,60,0.35);
transition: all 0.25s;
margin-top: 8px;
}
.btn-submit:hover {
transform: translateY(-2px);
box-shadow: 0 10px 28px rgba(42,120,60,0.4);
}
.back-link {
text-align: center;
margin-top: 20px;
font-size: 13px;
color: #6b8c72;
}
.back-link a {
color: #1a5c2a;
font-weight: 600;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 4px;
}
.back-link a:hover { text-decoration: underline; }
.alert-success {
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: 10px;
padding: 12px 16px;
color: #15803d;
font-size: 13px;
margin-bottom: 20px;
}
.error-msg {
color: #dc2626;
font-size: 12px;
margin-top: 6px;
}
@media (max-width: 768px) {
body { flex-direction: column; }
.left-panel { width: 100%; padding: 40px 24px; min-height: auto; }
.right-panel { width: 100%; padding: 40px 24px; }
}
</style>
</head>
<body>
<!-- Kiri: Branding -->
<div class="left-panel">
<div class="left-logo">
<img src="{{ asset('images/SIPDAM.png') }}" alt="SIPDAM">
</div>
<h2 class="left-title">Reset Password</h2>
<p class="left-desc">Kami akan mengirimkan link reset password ke email Anda</p>
<div class="left-info-box">
<div class="info-icon">
<svg width="24" height="24" fill="none" stroke="white" stroke-width="2" viewBox="0 0 24 24">
<path d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
</svg>
</div>
<h4>Cek Email Anda</h4>
<p>Setelah submit, cek inbox atau folder spam email Anda untuk link reset password.</p>
</div>
</div>
<!-- Kanan: Form -->
<div class="right-panel">
<div class="forgot-box">
<div class="forgot-header">
<div class="tirta-logo">
<img src="{{ asset('images/logo tirta sanjiwani.png') }}" alt="Tirta Sanjiwani">
<div class="tirta-logo-text">
<div class="name">PERUMDA Air Minum</div>
<div class="sub">Tirta Sanjiwani</div>
</div>
</div>
<div class="icon-wrap">
<svg width="28" height="28" fill="none" stroke="#2d7a3e" stroke-width="2" viewBox="0 0 24 24">
<path d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"/>
</svg>
</div>
<h2>Lupa Password?</h2>
<p>Masukkan email Anda dan kami akan mengirimkan link untuk reset password.</p>
</div>
@if (session('status'))
<div class="alert-success">{{ session('status') }}</div>
@endif
<form method="POST" action="{{ route('password.email') }}">
@csrf
<div class="form-group">
<label for="email">Alamat Email</label>
<input id="email" type="email" name="email"
value="{{ old('email') }}"
placeholder="contoh@email.com"
required autofocus>
@error('email')
<div class="error-msg">{{ $message }}</div>
@enderror
</div>
<button type="submit" class="btn-submit">
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
<path d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
</svg>
Kirim Link Reset Password
</button>
</form>
<div class="back-link">
<a href="{{ route('login') }}">
<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24">
<path d="M19 12H5M12 19l-7-7 7-7"/>
</svg>
Kembali ke halaman login
</a>
</div>
</div>
</div>
</body>
</html>