Renamed ebook_backend&admin_panel to ebook_backend_admin_panel The & character was being interpreted by shell as background process operator, causing 'Dockerfile not found' errors in Coolify.
703 lines
18 KiB
HTML
703 lines
18 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Admin Panel</title>
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
/**
|
|
* Global reset and base styles
|
|
* Removes default margins, padding, and sets consistent box-sizing
|
|
*/
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/**
|
|
* Main body container styles
|
|
* Creates centered layout with background gradient and subtle pattern
|
|
*/
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
background: #a970db;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/**
|
|
* Subtle background pattern overlay
|
|
* Creates a sophisticated textured background effect
|
|
*/
|
|
body::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-image:
|
|
radial-gradient(circle at 25% 25%, #e2e8f0 0%, transparent 50%),
|
|
radial-gradient(circle at 75% 75%, #f1f5f9 0%, transparent 50%);
|
|
background-size: 800px 800px;
|
|
opacity: 0.3;
|
|
z-index: 1;
|
|
}
|
|
|
|
/**
|
|
* Main login container
|
|
* White card container with shadow and rounded corners
|
|
*/
|
|
.container {
|
|
background: white;
|
|
border: 1px solid #e2e8f0;
|
|
padding: 3rem;
|
|
border-radius: 16px;
|
|
box-shadow:
|
|
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
width: 100%;
|
|
max-width: 420px;
|
|
position: relative;
|
|
z-index: 10;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/**
|
|
* Container hover effect
|
|
* Enhances shadow on hover for interactive feel
|
|
*/
|
|
.container:hover {
|
|
box-shadow:
|
|
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/**
|
|
* Admin header section styles
|
|
* Contains logo and title information
|
|
*/
|
|
.admin-header {
|
|
text-align: center;
|
|
margin-bottom: 2.5rem;
|
|
}
|
|
|
|
/**
|
|
* Admin logo styles
|
|
* Creates circular logo with lightning bolt icon
|
|
*/
|
|
.admin-logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
background: #3b82f6;
|
|
border-radius: 12px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 1rem;
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
/**
|
|
* Logo icon (lightning bolt emoji)
|
|
* Displayed within the logo container
|
|
*/
|
|
.admin-logo::before {
|
|
content: '⚡';
|
|
font-size: 28px;
|
|
color: white;
|
|
}
|
|
|
|
/**
|
|
* Main admin title
|
|
* Large, bold heading for the admin panel
|
|
*/
|
|
.admin-title {
|
|
color: #1e293b;
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
letter-spacing: -0.025em;
|
|
}
|
|
|
|
/**
|
|
* Admin subtitle
|
|
* Descriptive text below the main title
|
|
*/
|
|
.admin-subtitle {
|
|
color: #64748b;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
/**
|
|
* Form base styles
|
|
* Hidden by default, shown with transitions
|
|
*/
|
|
.form {
|
|
display: none;
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
transition: all 0.4s ease;
|
|
}
|
|
|
|
/**
|
|
* Active form state
|
|
* Makes form visible with smooth animation
|
|
*/
|
|
.form.active {
|
|
display: block;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/**
|
|
* Form heading styles
|
|
* Secondary title for login form
|
|
*/
|
|
.form h2 {
|
|
color: #1e293b;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
letter-spacing: -0.025em;
|
|
}
|
|
|
|
/**
|
|
* Form group container
|
|
* Wraps label and input combinations
|
|
*/
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/**
|
|
* Form label styles
|
|
* Consistent styling for all form labels
|
|
*/
|
|
label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
color: #374151;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/**
|
|
* Input container for relative positioning
|
|
* Allows for absolute positioned icons
|
|
*/
|
|
.input-container {
|
|
position: relative;
|
|
}
|
|
|
|
/**
|
|
* Input field base styles
|
|
* Consistent styling for text and password inputs
|
|
*/
|
|
input {
|
|
width: 100%;
|
|
padding: 0.875rem 1rem;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
box-sizing: border-box;
|
|
background: white;
|
|
color: #1e293b;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
/**
|
|
* Input placeholder text styling
|
|
*/
|
|
input::placeholder {
|
|
color: #94a3b8;
|
|
}
|
|
|
|
/**
|
|
* Input focus state
|
|
* Blue border and shadow when focused
|
|
*/
|
|
input:focus {
|
|
outline: none;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
/**
|
|
* Input hover state
|
|
* Subtle border color change on hover
|
|
*/
|
|
input:hover {
|
|
border-color: #cbd5e1;
|
|
}
|
|
|
|
/**
|
|
* Input icon positioning
|
|
* Icons displayed inside input fields
|
|
*/
|
|
.input-icon {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 16px;
|
|
color: #94a3b8;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
/**
|
|
* Input icon focus state
|
|
* Changes color when input is focused
|
|
*/
|
|
input:focus + .input-icon {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
/**
|
|
* Button base styles
|
|
* Primary action button styling
|
|
*/
|
|
button {
|
|
width: 100%;
|
|
padding: 0.875rem 1rem;
|
|
background: #3b82f6;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
margin-bottom: 1rem;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
/**
|
|
* Button hover state
|
|
* Darker background and subtle lift effect
|
|
*/
|
|
button:hover {
|
|
background: #2563eb;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
|
|
}
|
|
|
|
/**
|
|
* Button active state
|
|
* Returns to original position when clicked
|
|
*/
|
|
button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/**
|
|
* Button focus state
|
|
* Accessibility focus outline
|
|
*/
|
|
button:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
/**
|
|
* Navigation links container
|
|
* Flex layout for spacing links
|
|
*/
|
|
.nav-links {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 1.5rem;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/**
|
|
* Navigation link styles
|
|
* Subtle styling for secondary actions
|
|
*/
|
|
.nav-links a {
|
|
color: #64748b;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
transition: all 0.2s ease;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/**
|
|
* Navigation link hover state
|
|
* Background and color change on hover
|
|
*/
|
|
.nav-links a:hover {
|
|
background: #f1f5f9;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
/**
|
|
* Message base styles (error and success)
|
|
* Common styling for feedback messages
|
|
*/
|
|
.error, .success {
|
|
margin-top: 1rem;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/**
|
|
* Message visibility state
|
|
* Shows messages with animation when they have content
|
|
*/
|
|
.error:not(:empty), .success:not(:empty) {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/**
|
|
* Error message styling
|
|
* Red color scheme for error states
|
|
*/
|
|
.error {
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
color: #dc2626;
|
|
}
|
|
|
|
/**
|
|
* Success message styling
|
|
* Green color scheme for success states
|
|
*/
|
|
.success {
|
|
background: #f0fdf4;
|
|
border: 1px solid #bbf7d0;
|
|
color: #16a34a;
|
|
}
|
|
|
|
/**
|
|
* Loading button state
|
|
* Disables interaction and hides text
|
|
*/
|
|
.loading {
|
|
position: relative;
|
|
pointer-events: none;
|
|
color: transparent;
|
|
}
|
|
|
|
/**
|
|
* Loading spinner animation
|
|
* Circular spinner overlay for loading states
|
|
*/
|
|
.loading::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
margin: -10px 0 0 -10px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: white;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
/**
|
|
* Spinner rotation keyframe animation
|
|
* Creates smooth spinning effect
|
|
*/
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/**
|
|
* Tablet responsive styles
|
|
* Adjustments for medium-sized screens
|
|
*/
|
|
@media (max-width: 768px) {
|
|
body {
|
|
padding: 15px;
|
|
}
|
|
|
|
.container {
|
|
padding: 2rem 1.5rem;
|
|
max-width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.admin-title {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.admin-subtitle {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form h2 {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.input-container input {
|
|
padding: 12px 16px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
button {
|
|
padding: 14px 24px;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Mobile responsive styles
|
|
* Optimizations for small screens
|
|
*/
|
|
@media (max-width: 480px) {
|
|
body {
|
|
padding: 10px;
|
|
}
|
|
|
|
.container {
|
|
padding: 1.5rem 1rem;
|
|
max-width: 100%;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.admin-title {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.admin-subtitle {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.form h2 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.input-container input {
|
|
padding: 10px 14px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
button {
|
|
padding: 12px 20px;
|
|
font-size: 16px;
|
|
width: 100%;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Extra small mobile responsive styles
|
|
* Further optimizations for very small screens
|
|
*/
|
|
@media (max-width: 360px) {
|
|
.container {
|
|
padding: 1rem 0.8rem;
|
|
}
|
|
|
|
.admin-title {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.form h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.input-container input {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
button {
|
|
padding: 10px 16px;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Landscape orientation responsive styles
|
|
* Adjustments for landscape mobile devices
|
|
*/
|
|
@media (max-height: 500px) and (orientation: landscape) {
|
|
body {
|
|
padding: 10px;
|
|
}
|
|
|
|
.container {
|
|
padding: 1rem 1.5rem;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.admin-header {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.admin-title {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.admin-subtitle {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Enhanced accessibility focus styles
|
|
* Consistent focus indicators for keyboard navigation
|
|
*/
|
|
input:focus,
|
|
button:focus,
|
|
a:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
/**
|
|
* Professional hover effects for container
|
|
* Subtle animations and shadow changes
|
|
*/
|
|
.container {
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
/**
|
|
* Logo hover animation
|
|
* Smooth upward movement on hover
|
|
*/
|
|
.admin-logo {
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.admin-logo:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/**
|
|
* Custom scrollbar styling
|
|
* Clean, minimal scrollbar appearance
|
|
*/
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #cbd5e1;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #94a3b8;
|
|
}
|
|
|
|
/**
|
|
* Container entrance animation
|
|
* Smooth fade-in and slide-up effect on page load
|
|
*/
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.container {
|
|
animation: fadeInUp 0.6s ease-out;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!--
|
|
Admin Login Interface
|
|
|
|
This page provides a secure login interface for administrative users.
|
|
Features:
|
|
- Responsive design that works on all device sizes
|
|
- Modern UI with smooth animations and transitions
|
|
- Professional branding with logo and consistent typography
|
|
- Form validation and loading states
|
|
- Accessibility considerations for keyboard navigation
|
|
|
|
Structure:
|
|
1. Admin Header - Logo, title, and subtitle
|
|
2. Login Form - Username/password inputs with validation
|
|
3. External JavaScript - Handles form submission and validation
|
|
-->
|
|
|
|
<div class="container">
|
|
<!-- Admin Header Section -->
|
|
<div class="admin-header">
|
|
<!-- Animated logo with lightning bolt icon -->
|
|
<div class="admin-logo"></div>
|
|
|
|
<!-- Main page title -->
|
|
<h1 class="admin-title">Admin Panel</h1>
|
|
|
|
<!-- Descriptive subtitle explaining the page purpose -->
|
|
<p class="admin-subtitle">Secure access to your administration dashboard</p>
|
|
</div>
|
|
|
|
<!-- Login Form Section -->
|
|
<form id="loginForm" class="form active">
|
|
<!-- Form title -->
|
|
<h2>Admin Login</h2>
|
|
|
|
<!-- Username Input Group -->
|
|
<div class="form-group">
|
|
<label for="loginUsername">Username</label>
|
|
<div class="input-container">
|
|
<!-- Username text input with user icon -->
|
|
<input type="text" id="loginUsername" name="username" placeholder="Enter your username" required>
|
|
<span class="input-icon">👤</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Password Input Group -->
|
|
<div class="form-group">
|
|
<label for="loginPassword">Password</label>
|
|
<div class="input-container">
|
|
<!-- Password input with lock icon -->
|
|
<input type="password" id="loginPassword" name="password" placeholder="Enter your password" required>
|
|
<span class="input-icon">🔒</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Submit Button -->
|
|
<button type="submit">Login</button>
|
|
|
|
<!-- Error/Success Message Display Area -->
|
|
<p id="loginMessage" class="error"></p>
|
|
</form>
|
|
</div>
|
|
|
|
<!-- External JavaScript File -->
|
|
<script src="/static/admin_login.js"></script>
|
|
</body>
|
|
</html> |