syifa-laravel/resources/views/auth/login.blade.php

104 lines
2.7 KiB
PHP

<x-guest-layout>
<style>
body {
margin: 0;
padding: 0;
background: linear-gradient(135deg, #c2e9fb, #a1c4fd); /* gradasi biru kalem */
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.card-auth {
background-color: white;
padding: 2.5rem;
border-radius: 20px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
text-align: center;
}
.card-auth h1 {
margin-bottom: 1.5rem;
color: #1d4ed8;
font-size: 1.5rem;
}
.card-auth input {
width: 100%;
padding: 0.75rem;
margin-bottom: 1rem;
border: 1px solid #cbd5e1;
border-radius: 10px;
font-size: 1rem;
}
.card-auth input:focus {
outline: none;
border-color: #60a5fa;
box-shadow: 0 0 0 2px #bfdbfe;
}
.btn-auth {
background-color: #3b82f6;
color: white;
border: none;
padding: 0.75rem;
width: 100%;
border-radius: 10px;
font-weight: bold;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
}
.btn-auth:hover {
background-color: #2563eb;
}
.card-auth a {
color: #2563eb;
text-decoration: none;
}
.card-auth a:hover {
text-decoration: underline;
}
.card-auth small {
display: block;
margin-top: 1rem;
color: #64748b;
}
</style>
<div class="card-auth">
<h1 class="font-bold">Masuk ke Halaman Data Siswa</h1>
@if ($errors->any())
<div style="color: red; margin-bottom: 1rem;">
@foreach ($errors->all() as $error)
<div>{{ $error }}</div>
@endforeach
</div>
@endif
<form method="POST" action="{{ route('login') }}">
@csrf
<input type="text" name="name" placeholder="Nama Lengkap" required>
<input type="email" name="email" placeholder="Email" required>
<input type="password" name="password" placeholder="Password" required>
<button class="btn-auth" type="submit">Login</button>
</form>
<small>
Belum punya akun? <a href="{{ route('register') }}">Daftar di sini</a>
</small>
</div>
</x-guest-layout>