206 lines
7.7 KiB
PHP
206 lines
7.7 KiB
PHP
{{--
|
|
Authentication Layout
|
|
Professional Resume Builder - Auth Pages Layout
|
|
|
|
@author David Valera Melendez <david@valera-melendez.de>
|
|
@created 2025-08-08
|
|
@location Made in Germany 🇩🇪
|
|
--}}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" data-bs-theme="light">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<meta name="description" content="{{ $description ?? 'Professional Resume Builder - Enterprise-grade authentication system' }}">
|
|
<meta name="author" content="David Valera Melendez">
|
|
|
|
<title>{{ $title ?? 'Authentication' }} | Professional Resume Builder</title>
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
|
|
|
|
<!-- 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=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
|
|
|
<!-- Bootstrap Icons -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
|
|
|
<!-- Styles -->
|
|
@vite(['resources/sass/app.scss'])
|
|
@stack('styles')
|
|
|
|
<style>
|
|
.auth-container {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
position: relative;
|
|
}
|
|
|
|
.auth-container::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
|
|
pointer-events: none;
|
|
}
|
|
|
|
.auth-card {
|
|
backdrop-filter: blur(20px);
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.auth-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.brand-icon {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.security-badge {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
@keyframes slideInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.auth-wrapper {
|
|
animation: slideInUp 0.6s ease-out;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border: none;
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="auth-container d-flex align-items-center justify-content-center p-3">
|
|
<!-- Skip to main content for accessibility -->
|
|
<a href="#main-content" class="visually-hidden-focusable btn btn-primary position-absolute top-0 start-0 z-3">
|
|
Skip to main content
|
|
</a>
|
|
|
|
<div class="auth-wrapper w-100" style="max-width: 480px;">
|
|
<!-- Brand Header -->
|
|
<div class="text-center text-white mb-4">
|
|
<div class="mb-3">
|
|
<i class="bi bi-file-earmark-text-fill brand-icon rounded-circle p-3 fs-1"></i>
|
|
</div>
|
|
<h1 class="fw-bold mb-2" style="font-size: 2rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);">
|
|
Resume Builder
|
|
</h1>
|
|
<p class="mb-0 opacity-75">Professional CV Creation Platform</p>
|
|
</div>
|
|
|
|
<!-- Main Content Card -->
|
|
<main id="main-content">
|
|
@yield('content')
|
|
</main>
|
|
|
|
<!-- Security Features -->
|
|
<div class="d-flex justify-content-center gap-3 flex-wrap mt-4 text-white">
|
|
<div class="security-badge rounded-pill px-3 py-2 small">
|
|
<i class="bi bi-shield-check me-1"></i>
|
|
SSL Encryption
|
|
</div>
|
|
<div class="security-badge rounded-pill px-3 py-2 small">
|
|
<i class="bi bi-check-circle me-1"></i>
|
|
GDPR Compliant
|
|
</div>
|
|
<div class="security-badge rounded-pill px-3 py-2 small">
|
|
<i class="bi bi-eye-slash me-1"></i>
|
|
Privacy Protected
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<footer class="text-center text-white mt-4">
|
|
<p class="small mb-2 opacity-75">
|
|
© {{ date('Y') }} David Valera Melendez. Made in Germany 🇩🇪
|
|
</p>
|
|
<div class="d-flex justify-content-center gap-3 small">
|
|
<a href="{{ route('privacy') }}" class="text-white text-decoration-none opacity-75">Privacy Policy</a>
|
|
<a href="{{ route('terms') }}" class="text-white text-decoration-none opacity-75">Terms of Service</a>
|
|
<a href="{{ route('support') }}" class="text-white text-decoration-none opacity-75">Support</a>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
|
|
<!-- Scripts -->
|
|
@vite(['resources/js/app.js'])
|
|
@stack('scripts')
|
|
|
|
<!-- Form validation and interactions -->
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
// Auto-focus first input
|
|
const firstInput = document.querySelector('input:not([type="hidden"])');
|
|
if (firstInput) {
|
|
firstInput.focus();
|
|
}
|
|
|
|
// Real-time validation feedback
|
|
const forms = document.querySelectorAll('form');
|
|
forms.forEach(form => {
|
|
const inputs = form.querySelectorAll('input[required]');
|
|
inputs.forEach(input => {
|
|
input.addEventListener('blur', function() {
|
|
validateInput(this);
|
|
});
|
|
|
|
input.addEventListener('input', function() {
|
|
if (this.classList.contains('is-invalid')) {
|
|
validateInput(this);
|
|
}
|
|
});
|
|
});
|
|
});
|
|
|
|
function validateInput(input) {
|
|
const isValid = input.checkValidity();
|
|
input.classList.toggle('is-valid', isValid && input.value.length > 0);
|
|
input.classList.toggle('is-invalid', !isValid && input.value.length > 0);
|
|
}
|
|
|
|
// Enhanced loading states
|
|
const submitButtons = document.querySelectorAll('button[type="submit"]');
|
|
submitButtons.forEach(button => {
|
|
button.closest('form').addEventListener('submit', function() {
|
|
button.innerHTML = '<span class="spinner-border spinner-border-sm me-2"></span>Processing...';
|
|
button.disabled = true;
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|