380 lines
14 KiB
PHP
380 lines
14 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Reset 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;
|
|
}
|
|
.reset-box {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
.reset-header {
|
|
margin-bottom: 32px;
|
|
}
|
|
.reset-header .tirta-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 28px;
|
|
}
|
|
.reset-header .tirta-logo img {
|
|
width: 48px; height: 48px;
|
|
object-fit: contain;
|
|
}
|
|
.reset-header .tirta-logo-text .name {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: #1a5c2a;
|
|
line-height: 1.2;
|
|
}
|
|
.reset-header .tirta-logo-text .sub {
|
|
font-size: 11px;
|
|
color: #1e6fa8;
|
|
font-weight: 600;
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.reset-header .icon-wrap {
|
|
width: 56px; height: 56px;
|
|
background: #e8f5eb;
|
|
border-radius: 16px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.reset-header h2 {
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
color: #1a2e1c;
|
|
margin-bottom: 8px;
|
|
}
|
|
.reset-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; }
|
|
|
|
.password-wrap {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.password-wrap input {
|
|
padding-right: 40px;
|
|
}
|
|
.password-toggle {
|
|
position: absolute;
|
|
right: 12px;
|
|
color: #6b8c72;
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: color 0.2s;
|
|
}
|
|
.password-toggle:hover {
|
|
color: #1a5c2a;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.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">Atur Ulang Password</h2>
|
|
<p class="left-desc">Silakan buat password baru yang kuat untuk melindungi akun 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 stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"/>
|
|
</svg>
|
|
</div>
|
|
<h4>Gunakan Password Kuat</h4>
|
|
<p>Disarankan menggunakan kombinasi huruf, angka, dan karakter spesial agar akun Anda lebih aman.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Kanan: Form -->
|
|
<div class="right-panel">
|
|
<div class="reset-box">
|
|
|
|
<div class="reset-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 stroke-linecap="round" stroke-linejoin="round" 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>Buat Password Baru</h2>
|
|
<p>Masukkan email dan password baru Anda untuk melanjutkan.</p>
|
|
</div>
|
|
|
|
<form method="POST" action="{{ route('password.store') }}">
|
|
@csrf
|
|
|
|
<!-- Password Reset Token -->
|
|
<input type="hidden" name="token" value="{{ $request->route('token') }}">
|
|
|
|
<div class="form-group">
|
|
<label for="email">Alamat Email</label>
|
|
<input id="email" type="email" name="email"
|
|
value="{{ old('email', $request->email) }}"
|
|
placeholder="contoh@email.com"
|
|
required autofocus autocomplete="username" readonly style="background: #f1f5f9; cursor: not-allowed; color: #64748b;">
|
|
@error('email')
|
|
<div class="error-msg">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password">Password Baru</label>
|
|
<div class="password-wrap">
|
|
<input id="password" type="password" name="password"
|
|
placeholder="Masukkan password baru"
|
|
required autocomplete="new-password">
|
|
<span class="password-toggle" id="togglePassword1">
|
|
<svg width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
|
<path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
|
|
<path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"/>
|
|
</svg>
|
|
</span>
|
|
</div>
|
|
@error('password')
|
|
<div class="error-msg">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password_confirmation">Konfirmasi Password</label>
|
|
<div class="password-wrap">
|
|
<input id="password_confirmation" type="password" name="password_confirmation"
|
|
placeholder="Ulangi password baru"
|
|
required autocomplete="new-password">
|
|
<span class="password-toggle" id="togglePassword2">
|
|
<svg width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
|
<path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
|
|
<path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"/>
|
|
</svg>
|
|
</span>
|
|
</div>
|
|
@error('password_confirmation')
|
|
<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.5" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"/>
|
|
</svg>
|
|
Simpan Password Baru
|
|
</button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function setupToggle(toggleBtnId, inputId) {
|
|
const toggleBtn = document.querySelector(toggleBtnId);
|
|
const input = document.querySelector(inputId);
|
|
|
|
if(!toggleBtn || !input) return;
|
|
|
|
toggleBtn.addEventListener('click', function () {
|
|
const type = input.getAttribute('type') === 'password' ? 'text' : 'password';
|
|
input.setAttribute('type', type);
|
|
|
|
if (type === 'text') {
|
|
this.innerHTML = `<svg width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
} else {
|
|
this.innerHTML = `<svg width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/><path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"/></svg>`;
|
|
}
|
|
});
|
|
}
|
|
|
|
setupToggle('#togglePassword1', '#password');
|
|
setupToggle('#togglePassword2', '#password_confirmation');
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|