378 lines
11 KiB
PHP
378 lines
11 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Control Panel - Admin Access</title>
|
|
<!-- Google Fonts: Outfit & Inter -->
|
|
<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&family=Outfit:wght@400;600;700;800&display=swap" rel="stylesheet">
|
|
|
|
<style>
|
|
:root {
|
|
--bg-color: #0b0f19;
|
|
--card-bg: rgba(17, 24, 39, 0.7);
|
|
--card-border: rgba(255, 255, 255, 0.08);
|
|
--accent-primary: #ef4444; /* red for admin alert */
|
|
--accent-secondary: #0078d4;
|
|
--text-main: #f3f4f6;
|
|
--text-muted: #9ca3af;
|
|
--error-color: #ef4444;
|
|
--success-color: #10b981;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-main);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
/* Gorgeous glowing red gradient backgrounds for Admin */
|
|
body::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 400px;
|
|
height: 400px;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
|
|
top: -100px;
|
|
left: -100px;
|
|
z-index: -1;
|
|
}
|
|
|
|
body::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 500px;
|
|
height: 500px;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle, rgba(0, 120, 212, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
|
|
bottom: -150px;
|
|
right: -150px;
|
|
z-index: -1;
|
|
}
|
|
|
|
.login-container {
|
|
width: 100%;
|
|
max-width: 460px;
|
|
padding: 20px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.brand-header {
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.brand-logo {
|
|
font-family: 'Outfit', sans-serif;
|
|
font-size: 2.2rem;
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
letter-spacing: -0.5px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.brand-logo svg {
|
|
width: 32px;
|
|
height: 32px;
|
|
fill: #ef4444;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
/* Glassmorphism Card styling */
|
|
.login-card {
|
|
background-color: var(--card-bg);
|
|
border: 1px solid var(--card-border);
|
|
border-radius: 20px;
|
|
padding: 40px 32px;
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.login-card:hover {
|
|
box-shadow: 0 15px 40px rgba(239, 68, 68, 0.08);
|
|
}
|
|
|
|
.tab-content {
|
|
display: block;
|
|
animation: fadeIn 0.4s ease-out;
|
|
}
|
|
|
|
/* Typography & Forms */
|
|
h2 {
|
|
font-family: 'Outfit', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 1.4rem;
|
|
margin-bottom: 8px;
|
|
color: #fca5a5;
|
|
}
|
|
|
|
.portal-desc {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
margin-bottom: 24px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
background-color: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid var(--card-border);
|
|
border-radius: 10px;
|
|
color: var(--text-main);
|
|
font-family: 'Inter', sans-serif;
|
|
font-size: 0.95rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
background-color: rgba(255, 255, 255, 0.07);
|
|
box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
width: 100%;
|
|
padding: 13px;
|
|
border-radius: 10px;
|
|
border: none;
|
|
font-family: 'Inter', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--accent-primary);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #dc2626;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.btn-microsoft {
|
|
background-color: #2f2f2f;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: var(--text-main);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btn-microsoft:hover {
|
|
background-color: #3f3f3f;
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.microsoft-icon-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.micro-rect {
|
|
width: 7px;
|
|
height: 7px;
|
|
}
|
|
.r1 { background-color: #f25022; }
|
|
.r2 { background-color: #7fba00; }
|
|
.r3 { background-color: #00a4ef; }
|
|
.r4 { background-color: #ffb900; }
|
|
|
|
/* Notification Alerts */
|
|
.alert {
|
|
border-radius: 10px;
|
|
padding: 12px 16px;
|
|
margin-bottom: 20px;
|
|
font-size: 0.85rem;
|
|
line-height: 1.4;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.alert-danger {
|
|
background-color: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
color: var(--error-color);
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: rgba(16, 185, 129, 0.1);
|
|
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.alert-icon {
|
|
font-size: 1.1rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Divider */
|
|
.divider {
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 0.8rem;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.divider::before, .divider::after {
|
|
content: '';
|
|
flex: 1;
|
|
border-bottom: 1px solid var(--card-border);
|
|
}
|
|
|
|
.divider:not(:empty)::before {
|
|
margin-right: .5em;
|
|
}
|
|
|
|
.divider:not(:empty)::after {
|
|
margin-left: .5em;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
margin-top: 24px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="login-container">
|
|
|
|
<div class="brand-header">
|
|
<div class="brand-logo">
|
|
<svg viewBox="0 0 24 24">
|
|
<path d="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8H17V6A5,5 0 0,0 12,1A5,5 0 0,0 7,6V8H6A2,2 0 0,0 4,10V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V10A2,2 0 0,0 18,8M8.9,6C8.9,4.29 10.29,2.9 12,2.9C13.71,2.9 15.1,4.29 15.1,6V8H8.9V6M18,20H6V10H18V20Z" />
|
|
</svg>
|
|
Control Panel Admin
|
|
</div>
|
|
<div class="brand-subtitle">Administrator Access Only</div>
|
|
</div>
|
|
|
|
<div class="login-card">
|
|
|
|
<!-- Alert Display -->
|
|
@if(session('error'))
|
|
<div class="alert alert-danger">
|
|
<span class="alert-icon">⚠️</span>
|
|
<div>{{ session('error') }}</div>
|
|
</div>
|
|
@endif
|
|
|
|
@if(session('success'))
|
|
<div class="alert alert-success">
|
|
<span class="alert-icon">✓</span>
|
|
<div>{{ session('success') }}</div>
|
|
</div>
|
|
@endif
|
|
|
|
@if($errors->any())
|
|
<div class="alert alert-danger">
|
|
<span class="alert-icon">⚠️</span>
|
|
<div>
|
|
@foreach($errors->all() as $error)
|
|
<p>{{ $error }}</p>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
<!-- Admin Portal Content -->
|
|
<div class="tab-content">
|
|
<h2>Admin Credentials</h2>
|
|
<div class="portal-desc">Manage system services, restrict users, and review platform authentication logs.</div>
|
|
|
|
<!-- Email/Password Admin Form -->
|
|
<form action="{{ route('admin.login.submit') }}" method="POST">
|
|
@csrf
|
|
<div class="form-group">
|
|
<label class="form-label" for="email">Admin Email</label>
|
|
<input type="email" id="email" name="email" class="form-input" placeholder="admin@company.com" required value="{{ old('email') }}">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label" for="password">Password</label>
|
|
<input type="password" id="password" name="password" class="form-input" placeholder="••••••••" required>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary" style="margin-bottom: 10px;">
|
|
Login as Administrator
|
|
</button>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
© 2026 Systems. Secured with Microsoft Identity Platform.
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|