klasifikasi_kredit/resources/views/forgotpassword.blade.php

144 lines
3.8 KiB
PHP

<!-- resources/views/auth/login.blade.php -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.16.0/dist/sweetalert2.min.css">
<style>
body {
background-color: #00b894;
height: 100vh;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
}
.login-wrapper {
width: 100%;
max-width: 400px;
margin: 0 auto;
padding: 0 15px;
}
.login-card {
background: white;
padding: 2rem;
border-radius: 15px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 100%;
text-align: center;
}
.login-header {
text-align: center;
margin-bottom: 2rem;
}
.login-header img {
width: 60px;
margin-bottom: 1rem;
}
.form-control {
border: 1px solid #ddd;
padding: 0.8rem;
margin-bottom: 1rem;
border-radius: 8px;
}
.btn-login {
background-color: #00b894;
border: none;
padding: 0.8rem;
border-radius: 8px;
width: 100%;
color: white;
font-weight: 500;
margin-top: 1rem;
}
.btn-login:hover {
background-color: #00a38c;
}
.forgot-signup {
display: flex;
justify-content: space-between;
margin-top: 1rem;
font-size: 0.9rem;
}
.forgot-signup a {
color: #00b894;
text-decoration: none;
}
.forgot-signup a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="login-wrapper">
<div class="login-card">
<div class="login-header">
<h3 class="text-muted">Forgot Password</h3>
</div>
<form method="POST" action="{{ url('forgotpasswordsend') }}">
@csrf
<div class="mb-3">
<input type="text" class="form-control @error('email') is-invalid @enderror" name="email"
value="{{ old('email') }}" placeholder="Email" required autocomplete="email" autofocus>
@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="forgot-signup">
<a href="{{ url('login') }}">Login</a>
<a href="{{ url('register') }}">Signup now!</a>
</div>
<button type="submit" class="btn btn-login">Send</button>
</form>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.16.0/dist/sweetalert2.all.min.js"></script>
@if (session('success'))
<script>
Swal.fire({
icon: 'success',
title: 'Success',
text: '{{ session('success') }}',
});
</script>
@endif
@if (session('error'))
<script>
Swal.fire({
icon: 'error',
title: 'Error',
text: '{{ session('error') }}',
});
</script>
@endif
</body>
</html>