E31230190_Bintang-Rizki-Sap.../resources/views/auth/login.blade.php

333 lines
7.5 KiB
PHP

@php $noNavbar = true; @endphp
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<title>Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">
<style>
body{
margin:0;
min-height:100vh;
background:linear-gradient(135deg,#2563eb,#0ea5e9);
display:flex;
align-items:center;
justify-content:center;
font-family:'Segoe UI',sans-serif;
padding:20px;
}
.login-wrapper{
width:1000px;
max-width:100%;
background:#fff;
border-radius:24px;
overflow:hidden;
box-shadow:0 25px 50px rgba(0,0,0,0.12);
display:flex;
}
/* LEFT */
.login-left{
width:50%;
background:linear-gradient(135deg,#2563eb,#0ea5e9);
color:white;
padding:60px;
display:flex;
flex-direction:column;
justify-content:center;
position:relative;
overflow:hidden;
}
.login-left::before{
content:'';
position:absolute;
width:300px;
height:300px;
background:rgba(255,255,255,0.08);
border-radius:50%;
top:-80px;
right:-80px;
}
.login-left::after{
content:'';
position:absolute;
width:220px;
height:220px;
background:rgba(255,255,255,0.05);
border-radius:50%;
bottom:-70px;
left:-70px;
}
.login-content{
position:relative;
z-index:2;
}
.login-left h1{
font-size:42px;
font-weight:700;
margin-bottom:20px;
line-height:1.2;
}
.login-left p{
font-size:16px;
line-height:1.8;
opacity:0.95;
margin-bottom:30px;
}
.login-feature{
display:flex;
align-items:center;
margin-bottom:18px;
font-size:15px;
}
.login-feature i{
width:40px;
height:40px;
border-radius:10px;
background:rgba(255,255,255,0.15);
display:flex;
align-items:center;
justify-content:center;
margin-right:15px;
}
/* RIGHT */
.login-right{
width:50%;
padding:60px 50px;
display:flex;
flex-direction:column;
justify-content:center;
}
.login-right h2{
text-align:center;
font-weight:700;
color:#1e293b;
margin-bottom:10px;
}
.login-right .subtitle{
text-align:center;
color:#64748b;
margin-bottom:30px;
font-size:14px;
}
.form-label{
font-weight:600;
color:#334155;
margin-bottom:8px;
}
.form-control{
border-radius:12px;
border:1px solid #dbeafe;
padding:12px 14px;
transition:0.3s;
}
.form-control:focus{
border-color:#2563eb;
box-shadow:0 0 0 4px rgba(37,99,235,0.1);
}
.btn-login{
background:linear-gradient(135deg,#2563eb,#0ea5e9);
border:none;
border-radius:12px;
padding:12px;
font-weight:600;
transition:0.3s;
}
.btn-login:hover{
transform:translateY(-2px);
opacity:0.95;
}
.auth-links{
text-align:center;
margin-top:25px;
font-size:14px;
}
.auth-links a{
color:#2563eb;
text-decoration:none;
font-weight:600;
}
.auth-links a:hover{
text-decoration:underline;
}
.alert-danger{
border-radius:12px;
font-size:14px;
}
@media(max-width:768px){
body{
padding:15px;
}
.login-wrapper{
flex-direction:column;
}
.login-left,
.login-right{
width:100%;
}
.login-left{
padding:40px 30px;
text-align:center;
}
.login-left h1{
font-size:32px;
}
.login-feature{
justify-content:center;
}
.login-right{
padding:40px 25px;
}
}
</style>
</head>
<body>
<div class="login-wrapper">
<!-- LEFT -->
<div class="login-left">
<div class="login-content">
<h1>Selamat Datang</h1>
<p>
Sistem Pakar Diagnosa Penyakit Hipertensi berbasis metode
Certainty Factor untuk membantu proses analisa gejala
dan hasil diagnosa secara mandiri.
</p>
</div>
</div>
<!-- RIGHT -->
<div class="login-right">
<h2>LOGIN</h2>
<div class="subtitle">
Silakan login untuk melanjutkan ke sistem
</div>
{{-- ERROR LOGIN --}}
@if ($errors->has('email'))
<div class="alert alert-danger">
Email atau password anda salah.
</div>
@endif
<form method="POST" action="{{ route('login') }}">
@csrf
<div class="mb-3">
<label class="form-label">
Email
</label>
<input type="email"
name="email"
class="form-control @error('email') is-invalid @enderror"
placeholder="Masukkan email"
required
autofocus>
</div>
<div class="mb-3">
<label class="form-label">
Password
</label>
<input type="password"
name="password"
class="form-control @error('password') is-invalid @enderror"
placeholder="Masukkan password"
required>
</div>
<div class="mb-3 form-check">
<input type="checkbox"
name="remember"
class="form-check-input"
id="remember">
<label class="form-check-label" for="remember">
Ingatkan aku
</label>
</div>
<div class="d-grid">
<button type="submit"
class="btn btn-login text-white">
Login
</button>
</div>
</form>
<div class="auth-links">
@if (Route::has('password.request'))
<a href="{{ route('password.request') }}">
Lupa Password?
</a>
@endif
<br>
<a href="{{ route('register') }}">
Belum punya akun? Daftar
</a>
</div>
</div>
</div>
</body>
</html>