academy/resources/views/signin.blade.php

245 lines
5.9 KiB
PHP

@extends('layouts.blank')
@section('title', 'Student Login')
@push('styles')
<style>
body {
background: #f5f7fb;
}
* {
font-family: 'Arial', Helvetica, sans-serif;
transform: scale(0.95);
}
/* LEFT PANEL */
.left-panel {
min-height: 100vh;
background: #f8f9fa;
display: flex;
justify-content: center;
align-items: center;
}
.left-panel img {
max-width: 450px;
}
/* RIGHT PANEL */
.right-panel {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
}
/* LOGIN BOX */
.box {
width: 100%;
max-width: 500px;
background: #ffffff;
padding: 45px;
border-radius: 18px;
box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
/* TITLE */
.headline {
text-align: center;
font-size: 32px;
font-weight: 700;
color: #222;
margin-bottom: 35px;
}
/* INPUT */
.input-container {
position: relative;
margin-bottom: 25px;
font-size: 22px;
font-family: arial;
}
.input-container input {
width: 100%;
height: 50px;
padding: 12px 0;
border: none;
border-bottom: 2px solid #ddd;
background: transparent;
outline: none;
font-size: 22px;
font-family: arial;
}
.input-container label {
position: absolute;
top: 15px;
left: 0;
color: #744a68;
transition: .3s;
pointer-events: none;
font-size: 22px;
font-family: arial;
}
/* FLOATING LABEL & VALIDATION STATES */
.input-container input:focus,
.input-container input:valid {
border-bottom-color: #744a68;
font-size: 20px;
font-family: arial;
}
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
top: -12px;
font-size: 12px;
color: #744a68;
font-weight: 600;
}
/* FORGOT PASSWORD */
.forgot-link {
color: #744a68;
font-size: 16px;
text-decoration: none;
font-weight: 500;
transition: color 0.2s ease-in-out;
}
.forgot-link:hover {
text-decoration: underline;
color: #5E244E;
}
/* BUTTON */
.btn-primary {
height: 50px;
width: 100%;
font-size: 16px;
font-weight: 600;
background: #5E244E;
border: none;
color: white;
/* border-radius: 8px; */
transition: background 0.2s ease-in-out, transform 0.1s ease;
}
.btn-primary:hover, .btn-primary:focus {
background: #4a1c3e;
color: white;
}
.btn-primary:active {
transform: scale(0.98);
}
/* BOTTOM TEXT */
.dontacc {
text-align: center;
}
.dontacc p {
color: #666;
}
.dontacc a {
color: #744a68;
text-decoration: none;
font-weight: 600;
font-size: 16px;
font-family: arial;
}
.dontacc a:hover {
text-decoration: underline;
}
/* RESPONSIVE DESIGN */
@media(max-width:991px) {
.left-panel {
display: none !important;
}
.right-panel {
min-height: 100vh;
padding: 20px;
}
.box {
padding: 30px;
}
.headline {
font-size: 28px;
color: #5E244E;
font-weight: bold;
font-family: Arial;
}
}
</style>
@endpush
@section('content')
<div class="container-fluid">
<div class="row min-vh-100">
<!-- <div class="col-lg-6 left-panel">
<div class="text-center">
<img src="{{ asset('images/login-banner.png') }}" class="img-fluid mb-4" alt="Automobile Engineering Academy">
<h2 class="fw-bold">Automobile Engineering Academy</h2>
<p class="text-muted px-5">
Driving Innovation Through Education, Research and Technology.
</p>
</div>
</div> -->
<div class="col-lg-6 right-panel">
<div class="box">
<h2 class="headline">Student Sign In</h2>
<form method="POST" action="{{ url('/signin') }}">
@csrf
<div class="input-container">
<input type="email" name="email" value="{{ old('email') }}" placeholder=" " required>
<label>Email Address</label>
@error('email')
<span class="d-block text-danger mt-1 small">{{ $message }}</span>
@enderror
</div>
<div class="input-container">
<input type="password" name="password" placeholder=" " required>
<label>Password</label>
@error('password')
<span class="d-block text-danger mt-1 small">{{ $message }}</span>
@enderror
</div>
<button type="submit" class="btn btn-primary mb-4">
Sign In
</button>
<div class="d-flex justify-content-end mb-4" style="gap: 10px;padding-top: 10px; padding-left: 190px;">
<a href="{{ url('/password/reset') }}" class="forgot-link">Forgot Password?</a>
</div>
<div class="dontacc" style="padding-top: 10px; " >
<!-- <p class="mb-1">Don't have an account?</p> -->
<a href="{{ url('/signup') }}">Create Student Account</a>
</div>
</form>
</div>
</div>
</div>
</div>
@endsection