academy/resources/views/signin.blade.php

257 lines
6.4 KiB
PHP

@extends('layouts.blank')
@section('title', 'Student Login')
@push('styles')
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--theme-navy: #2D355B; /* Primary Navy */
--theme-navy-dark: #1F2541; /* Dark Navy */
--theme-red: #822424; /* Primary Accent Red */
--theme-red-hover: #df2c3e; /* Red Hover */
--theme-yellow: #FFEA85; /* Accent Yellow/Gold */
--bg-light: #F6F6F6; /* Page Background */
--white: #ffffff;
}
body {
background: var(--bg-light);
font-family: 'Poppins', sans-serif;
}
/* LEFT PANEL */
.left-panel {
min-height: 100vh;
background: linear-gradient(135deg, var(--theme-navy) 0%, var(--theme-navy-dark) 100%);
display: flex;
justify-content: center;
align-items: center;
color: var(--white);
border-right: 5px solid var(--theme-red);
}
.left-panel img {
max-width: 400px;
filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}
.left-panel h2 {
color: var(--white);
font-size: 28px;
margin-top: 20px;
}
.left-panel p {
color: rgba(255, 255, 255, 0.8);
font-size: 15px;
}
/* RIGHT PANEL */
.right-panel {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
background: var(--bg-light);
scale: 0.7;
}
/* LOGIN BOX */
.box {
width: 100%;
max-width: 480px;
background: var(--white);
padding: 45px 40px;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(31, 37, 65, 0.08);
border: 1px solid #e2e8f0;
}
/* TITLE */
.headline {
text-align: center;
font-size: 28px;
font-weight: 700;
color: var(--theme-navy);
margin-bottom: 35px;
}
/* INPUT CONTAINER */
.input-container {
position: relative;
margin-bottom: 28px;
}
.input-container input {
width: 100%;
height: 48px;
padding: 10px 0 5px 0;
border: none;
border-bottom: 2px solid #cbd5e1;
background: transparent;
outline: none;
font-size: 16px;
color: #1e293b;
transition: all 0.3s ease;
}
.input-container label {
position: absolute;
top: 12px;
left: 0;
color: #64748b;
transition: 0.3s ease;
pointer-events: none;
font-size: 15px;
}
/* FLOATING LABEL & VALIDATION STATES */
.input-container input:focus {
border-bottom-color: var(--theme-navy);
}
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
top: -12px;
font-size: 12px;
color: var(--theme-navy);
font-weight: 600;
}
/* FORGOT PASSWORD */
.forgot-link {
color: var(--theme-red);
font-size: 14px;
text-decoration: none;
font-weight: 500;
padding-left: 37%;
transition: color 0.2s ease-in-out;
}
.forgot-link:hover {
text-decoration: underline;
color: var(--theme-red-hover);
}
/* BUTTON */
.btn-primary {
height: 48px;
width: 100%;
font-size: 16px;
font-weight: 600;
background: var(--theme-red) !important;
border: none;
color: var(--white) !important;
border-radius: 8px;
transition: all 0.2s ease;
}
.btn-primary:hover, .btn-primary:focus {
background: #822424 !important;
box-shadow: 0 4px 12px rgba(130, 36, 36, 0.3);
}
.btn-primary:active {
transform: scale(0.98);
}
/* BOTTOM TEXT */
.dontacc {
text-align: center;
margin-top: 15px;
}
.dontacc p {
color: #64748b;
font-size: 14px;
}
.dontacc a {
color: var(--theme-navy);
text-decoration: none;
font-weight: 600;
font-size: 15px;
transition: color 0.2s ease;
}
.dontacc a:hover {
text-decoration: underline;
color: var(--theme-navy-dark);
}
/* RESPONSIVE DESIGN */
@media(max-width:991px) {
.left-panel {
display: none !important;
}
.right-panel {
min-height: 100vh;
padding: 20px;
}
.box {
padding: 35px 25px;
}
.headline {
font-size: 24px;
}
}
</style>
@endpush
@section('content')
<div class="container-fluid">
<div class="row min-vh-100">
<div class="col-lg-6 right-panel col-12 mx-auto">
<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 shadow-sm">
Sign In
</button>
<div class="d-flex justify-content-end mb-4">
<a href="{{ url('/password/reset') }}" class="forgot-link">Forgot Password?</a>
</div>
<div class="dontacc">
<!-- <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