148 lines
3.9 KiB
PHP

@extends('layouts.plain')
@section('title', 'Login | ' . config('app.name'))
@section('extra_styles')
<style>
.auth-container {
width: 100%;
max-width: 400px;
margin: 0 auto;
}
.auth-card {
background: var(--bg-secondary);
border-radius: 12px;
padding: 32px;
}
.auth-logo {
text-align: center;
margin-bottom: 24px;
}
.auth-logo a {
font-size: 28px;
font-weight: 700;
color: var(--brand-red);
text-decoration: none;
}
.auth-title {
text-align: center;
font-size: 24px;
font-weight: 500;
margin-bottom: 24px;
}
.form-group {
margin-bottom: 16px;
}
.form-label {
display: block;
margin-bottom: 8px;
font-weight: 500;
}
.form-input {
width: 100%;
background: #121212;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 12px 16px;
color: var(--text-primary);
font-size: 14px;
}
.form-input:focus {
outline: none;
border-color: var(--brand-red);
}
.btn-primary {
width: 100%;
background: var(--brand-red);
color: white;
border: none;
padding: 14px 24px;
border-radius: 8px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
margin-top: 8px;
}
.btn-primary:hover {
background: #cc1a1a;
}
.auth-footer {
text-align: center;
margin-top: 24px;
color: var(--text-secondary);
}
.auth-footer a {
color: var(--brand-red);
text-decoration: none;
}
.auth-footer a:hover {
text-decoration: underline;
}
.error-message {
background: rgba(239, 68, 68, 0.2);
border: 1px solid #ef4444;
color: #ef4444;
padding: 12px;
border-radius: 8px;
margin-bottom: 16px;
font-size: 14px;
}
</style>
@endsection
@section('content')
<div class="auth-container">
<div class="auth-card">
<div class="auth-logo">
<a href="/videos">
<img src="{{ asset('storage/images/fullLogo.png') }}" alt="{{ config('app.name') }}" style="height: 40px;">
</a>
</div>
<h1 class="auth-title">Sign in</h1>
@if($errors->any())
<div class="error-message">
{{ $errors->first() }}
</div>
@endif
<form method="POST" action="{{ route('login.store') }}">
@csrf
<div class="form-group">
<label class="form-label">Email</label>
<input type="email" name="email" class="form-input" required autofocus>
</div>
<div class="form-group">
<label class="form-label">Password</label>
<input type="password" name="password" class="form-input" required>
</div>
<button type="submit" class="btn-primary">Sign in</button>
</form>
<div class="auth-footer">
Don't have an account? <a href="{{ route('register') }}">Sign up</a>
</div>
</div>
</div>
@endsection