263 lines
8.5 KiB
PHP
Executable File
263 lines
8.5 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Login - Lash Vanshy Admin</title>
|
|
|
|
<!-- Fonts -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<!-- Font Awesome -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
|
|
|
<style>
|
|
:root {
|
|
--primary: #F8B4C4;
|
|
--primary-dark: #E89AAD;
|
|
--secondary: #FFE4EC;
|
|
--background: #F8F9FA;
|
|
--text: #4A4A4A;
|
|
--text-light: #6c757d;
|
|
--border: #E9ECEF;
|
|
--danger: #dc3545;
|
|
--font-family: 'Poppins', sans-serif;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family);
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--background) 50%, var(--secondary) 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.login-wrapper {
|
|
width: 100%;
|
|
max-width: 450px;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.login-card {
|
|
background: white;
|
|
border-radius: 20px;
|
|
box-shadow: 0 20px 60px rgba(248, 180, 196, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.login-header {
|
|
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
|
|
padding: 2.5rem 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.login-header .brand {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.login-header .brand-icon {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.login-header .brand-text {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: white;
|
|
}
|
|
|
|
.login-header p {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
margin-top: 0.5rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.login-body {
|
|
padding: 2.5rem 2rem;
|
|
}
|
|
|
|
.form-label {
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.form-control {
|
|
border: 2px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 0.875rem 1rem;
|
|
font-family: var(--font-family);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 4px rgba(248, 180, 196, 0.2);
|
|
outline: none;
|
|
}
|
|
|
|
.form-control.is-invalid {
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
.btn-login {
|
|
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
|
|
border: none;
|
|
color: white;
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
width: 100%;
|
|
transition: all 0.3s ease;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.btn-login:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 30px rgba(248, 180, 196, 0.4);
|
|
background: linear-gradient(135deg, var(--primary-dark), var(--primary));
|
|
color: white;
|
|
}
|
|
|
|
.input-group-text {
|
|
background: transparent;
|
|
border: 2px solid var(--border);
|
|
border-left: none;
|
|
border-radius: 0 12px 12px 0;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.input-group .form-control {
|
|
border-right: none;
|
|
border-radius: 12px 0 0 12px;
|
|
}
|
|
|
|
.input-group .form-control:focus + .input-group-text {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.invalid-feedback {
|
|
color: var(--danger);
|
|
font-size: 0.85rem;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.alert-danger {
|
|
background: linear-gradient(135deg, #f8d7da, #f5c6cb);
|
|
border: none;
|
|
border-radius: 12px;
|
|
color: #721c24;
|
|
padding: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.back-home {
|
|
text-align: center;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.back-home a {
|
|
color: var(--text-light);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.back-home a:hover {
|
|
color: var(--primary-dark);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="login-wrapper">
|
|
<div class="login-card">
|
|
<div class="login-header">
|
|
<a href="{{ route('home') }}" class="brand">
|
|
<span class="brand-icon">✨</span>
|
|
<span class="brand-text">Lash Vanshy</span>
|
|
</a>
|
|
<p>Panel de Administración</p>
|
|
</div>
|
|
|
|
<div class="login-body">
|
|
@if($errors->any())
|
|
<div class="alert alert-danger">
|
|
<i class="fas fa-exclamation-circle me-2"></i>
|
|
@if($errors->has('email'))
|
|
{{ $errors->first('email') }}
|
|
@else
|
|
Los datos proporcionados no son correctos. Por favor, inténtalo de nuevo.
|
|
@endif
|
|
</div>
|
|
@endif
|
|
|
|
<form method="POST" action="{{ route('admin.login') }}">
|
|
@csrf
|
|
|
|
<div class="mb-3">
|
|
<label for="email" class="form-label">Correo electrónico</label>
|
|
<div class="input-group">
|
|
<input type="email"
|
|
class="form-control @error('email') is-invalid @enderror"
|
|
id="email"
|
|
name="email"
|
|
value="{{ old('email') }}"
|
|
placeholder="tu@email.com"
|
|
required
|
|
autofocus>
|
|
<span class="input-group-text">
|
|
<i class="fas fa-envelope"></i>
|
|
</span>
|
|
</div>
|
|
@error('email')
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="password" class="form-label">Contraseña</label>
|
|
<div class="input-group">
|
|
<input type="password"
|
|
class="form-control @error('password') is-invalid @enderror"
|
|
id="password"
|
|
name="password"
|
|
placeholder="••••••••"
|
|
required>
|
|
<span class="input-group-text">
|
|
<i class="fas fa-lock"></i>
|
|
</span>
|
|
</div>
|
|
@error('password')
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-login">
|
|
<i class="fas fa-sign-in-alt me-2"></i>Iniciar Sesión
|
|
</button>
|
|
</form>
|
|
|
|
<div class="back-home">
|
|
<a href="{{ route('home') }}">
|
|
<i class="fas fa-arrow-left me-1"></i>Volver al sitio
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |