sls/resources/views/auth/login.blade.php
2026-07-10 18:30:35 +05:30

403 lines
12 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portal - Authenticate</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: #4f46e5;
--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 gradient backgrounds */
body::before {
content: '';
position: absolute;
width: 400px;
height: 400px;
border-radius: 50%;
background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 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.15) 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, #a5b4fc 0%, #38bdf8 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: #38bdf8;
}
.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(79, 70, 229, 0.1);
}
/* Portal Toggle Tabs */
.portal-tabs {
display: flex;
background-color: rgba(255, 255, 255, 0.04);
border-radius: 12px;
padding: 4px;
margin-bottom: 30px;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.tab-btn {
flex: 1;
padding: 10px;
border: none;
background: none;
color: var(--text-muted);
font-family: 'Inter', sans-serif;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
border-radius: 8px;
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-btn.active {
background-color: var(--accent-primary);
color: var(--text-main);
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.tab-content {
display: none;
}
.tab-content.active {
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;
}
.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(79, 70, 229, 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: #4338ca;
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(79, 70, 229, 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="M18,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.9V6M12,17A2,2 0 1,1 14,15A2,2 0 0,1 12,17Z" />
</svg>
Unified Portal
</div>
<div class="brand-subtitle">Unified Identity Authentication Portal</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
<!-- User Portal Content -->
<div id="user-portal" class="tab-content active">
<h2>Welcome back</h2>
<div class="portal-desc">Access your Microsoft 365 services and corporate resources. Users must sign in via Single Sign-On.</div>
<a href="{{ route('auth.microsoft.redirect') }}" class="btn btn-microsoft" style="text-decoration: none;">
<div class="microsoft-icon-grid">
<div class="micro-rect r1"></div>
<div class="micro-rect r2"></div>
<div class="micro-rect r3"></div>
<div class="micro-rect r4"></div>
</div>
Sign in with Microsoft
</a>
</div>
</div>
<div class="footer">
&copy; 2026 Systems. Secured with Microsoft Identity Platform.
</div>
</div>
</body>
</html>