mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 03:36:48 +00:00
feat(ui): redesign authentication pages with modern virtualization theme
- Overhaul signin.css with responsive dark glassmorphic card and ambient lighting - Add server virtualization branding badge and typography hierarchy - Enhance input fields with leading Bootstrap icons and interactive password visibility toggle - Modernize 2FA/OTP login and signed-out pages to match design language - Add real-time loading feedback on form submission
This commit is contained in:
parent
e980aca2ff
commit
2996adae3a
4 changed files with 491 additions and 125 deletions
|
|
@ -10,48 +10,100 @@
|
|||
{% endblock style %}
|
||||
|
||||
{% block content %}
|
||||
<div class="login-box">
|
||||
<div class="page-header">
|
||||
<a href="/"><h1>WebVirtCloud</h1></a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-12" role="main">
|
||||
<div class="signin-wrapper">
|
||||
<div class="signin-card">
|
||||
<div class="signin-brand">
|
||||
<div class="signin-logo-badge">
|
||||
<i class="bi bi-shield-check"></i>
|
||||
</div>
|
||||
<h1 class="signin-title">{% trans "Two-Factor Auth" %}</h1>
|
||||
<p class="signin-subtitle">{% trans "Enter your authentication code to continue" %}</p>
|
||||
</div>
|
||||
|
||||
{% if form.errors %}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
{% bootstrap_form_errors form %}
|
||||
<div class="signin-alert" role="alert">
|
||||
<i class="bi bi-exclamation-triangle-fill fs-5 flex-shrink-0"></i>
|
||||
<div>{% bootstrap_form_errors form type='non_fields' %}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form id="form-signin" class="form-signin" method="post" role="form" aria-label="Login form">{% csrf_token %}
|
||||
<h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
|
||||
{% bootstrap_field form.username layout='inline' %}
|
||||
{% bootstrap_field form.password layout='inline' %}
|
||||
{% bootstrap_field form.otp_token layout='inline'%}
|
||||
<a href="{% url 'accounts:email_otp' %}" class="float-end">{% trans "I do not have/lost my OTP!" %}</a>
|
||||
<br>
|
||||
<div class="d-grid">
|
||||
<button id="btn-signin" class="btn btn-lg btn-success" type="submit">{% trans "Sign In" %}</button>
|
||||
<form id="form-signin" method="post" role="form" aria-label="OTP Login form">
|
||||
{% csrf_token %}
|
||||
<div class="mb-3">
|
||||
<label class="signin-field-label" for="id_username">{% trans "Username" %}</label>
|
||||
<div class="signin-input-group">
|
||||
<span class="signin-input-icon"><i class="bi bi-person"></i></span>
|
||||
<input type="text" id="id_username" class="signin-input form-control" name="username" value="{{ form.username.value|default:'' }}" placeholder="{% trans 'Enter username' %}" autocapitalize="none" autocorrect="off" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="signin-field-label" for="id_password">{% trans "Password" %}</label>
|
||||
<div class="signin-input-group">
|
||||
<span class="signin-input-icon"><i class="bi bi-shield-lock"></i></span>
|
||||
<input type="password" id="id_password" class="signin-input form-control" name="password" placeholder="{% trans 'Enter password' %}" required>
|
||||
<button class="signin-toggle-pwd" type="button" id="btn-toggle-pwd" tabindex="-1" aria-label="{% trans 'Toggle password visibility' %}">
|
||||
<i class="bi bi-eye" id="toggle-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-1">
|
||||
<label class="signin-field-label mb-0" for="id_otp_token">{% trans "Security Code" %}</label>
|
||||
<a href="{% url 'accounts:email_otp' %}" class="signin-link small">{% trans "Lost OTP?" %}</a>
|
||||
</div>
|
||||
<div class="signin-input-group">
|
||||
<span class="signin-input-icon"><i class="bi bi-key"></i></span>
|
||||
<input type="text" id="id_otp_token" class="signin-input form-control font-monospace" name="otp_token" placeholder="000000" inputmode="numeric" pattern="[0-9]*" maxlength="6" autofocus required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button id="btn-signin" class="btn-signin-submit" type="submit">
|
||||
<i class="bi bi-shield-lock-fill"></i>
|
||||
<span id="btn-text">{% trans "Verify & Sign In" %}</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="signin-footer">
|
||||
<span class="d-inline-flex align-items-center">
|
||||
<span class="pulse-indicator"></span>
|
||||
<span>{% trans "2FA Protection Active" %}</span>
|
||||
</span>
|
||||
<span class="font-monospace">v2.0.0</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#btn-signin").click(function() {
|
||||
// disable button
|
||||
$(this).prop("disabled", true);
|
||||
// add spinner to button
|
||||
$(this).html(
|
||||
`
|
||||
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
|
||||
{% trans "Loading" %}...
|
||||
`
|
||||
);
|
||||
$("#form-signin").submit();
|
||||
$('body').addClass('signin-page');
|
||||
|
||||
// Toggle password visibility
|
||||
$('#btn-toggle-pwd').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
var $pwd = $('#id_password');
|
||||
var $icon = $('#toggle-icon');
|
||||
if ($pwd.attr('type') === 'password') {
|
||||
$pwd.attr('type', 'text');
|
||||
$icon.removeClass('bi-eye').addClass('bi-eye-slash');
|
||||
} else {
|
||||
$pwd.attr('type', 'password');
|
||||
$icon.removeClass('bi-eye-slash').addClass('bi-eye');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Submit loading state
|
||||
$('#form-signin').on('submit', function() {
|
||||
var $btn = $('#btn-signin');
|
||||
$btn.prop('disabled', true);
|
||||
$btn.html(
|
||||
'<span class="spinner-border spinner-border-sm me-2" role="status" aria-hidden="true"></span>' +
|
||||
'{% trans "Verifying..." %}'
|
||||
);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock script%}
|
||||
{% endblock script %}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
{% load i18n %}
|
||||
{% load static %}
|
||||
|
||||
|
||||
{% block title %}{% trans "WebVirtCloud" %} - {% trans "Sign In" %}{% endblock title %}
|
||||
|
||||
{% block style %}
|
||||
|
|
@ -10,27 +9,59 @@
|
|||
{% endblock style %}
|
||||
|
||||
{% block content %}
|
||||
<div class="login-box">
|
||||
<div class="page-header">
|
||||
<a href="/"><h1>WebVirtCloud</h1></a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-12" role="main">
|
||||
<div class="signin-wrapper">
|
||||
<div class="signin-card">
|
||||
<div class="signin-brand">
|
||||
<div class="signin-logo-badge">
|
||||
<i class="bi bi-hdd-network"></i>
|
||||
</div>
|
||||
<h1 class="signin-title">WebVirtCloud</h1>
|
||||
<p class="signin-subtitle">{% trans "Virtualization Management Console" %}</p>
|
||||
</div>
|
||||
|
||||
{% if form.errors %}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
{% trans "Incorrect username or password." %}
|
||||
<div class="signin-alert" role="alert">
|
||||
<i class="bi bi-exclamation-triangle-fill fs-5 flex-shrink-0"></i>
|
||||
<div>{% trans "Incorrect username or password." %}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<form id="form-signin" class="form-signin" method="post" role="form" aria-label="Login form">{% csrf_token %}
|
||||
<h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
|
||||
<input type="text" class="form-control" name="username" placeholder="{% trans 'User' %}" autocapitalize="none" autocorrect="off" autofocus required>
|
||||
<input type="password" class="form-control" name="password" placeholder="{% trans 'Password' %}" required>
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
<div class="d-grid">
|
||||
<button id="btn-signin" class="btn btn-lg btn-success" type="submit">{% trans "Sign In" %}</button>
|
||||
|
||||
<form id="form-signin" method="post" role="form" aria-label="Login form">
|
||||
{% csrf_token %}
|
||||
<div class="mb-3">
|
||||
<label class="signin-field-label" for="id_username">{% trans "Username" %}</label>
|
||||
<div class="signin-input-group">
|
||||
<span class="signin-input-icon"><i class="bi bi-person"></i></span>
|
||||
<input type="text" id="id_username" class="signin-input form-control" name="username" placeholder="{% trans 'Enter username' %}" autocapitalize="none" autocorrect="off" autofocus required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="signin-field-label" for="id_password">{% trans "Password" %}</label>
|
||||
<div class="signin-input-group">
|
||||
<span class="signin-input-icon"><i class="bi bi-shield-lock"></i></span>
|
||||
<input type="password" id="id_password" class="signin-input form-control" name="password" placeholder="{% trans 'Enter password' %}" required>
|
||||
<button class="signin-toggle-pwd" type="button" id="btn-toggle-pwd" tabindex="-1" aria-label="{% trans 'Toggle password visibility' %}">
|
||||
<i class="bi bi-eye" id="toggle-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
|
||||
<button id="btn-signin" class="btn-signin-submit" type="submit">
|
||||
<i class="bi bi-box-arrow-in-right"></i>
|
||||
<span id="btn-text">{% trans "Sign In" %}</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="signin-footer">
|
||||
<span class="d-inline-flex align-items-center">
|
||||
<span class="pulse-indicator"></span>
|
||||
<span>KVM / Libvirt</span>
|
||||
</span>
|
||||
<span class="font-monospace">v2.0.0</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
@ -38,18 +69,31 @@
|
|||
{% block script %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#btn-signin").click(function() {
|
||||
// disable button
|
||||
$(this).prop("disabled", true);
|
||||
// add spinner to button
|
||||
$(this).html(
|
||||
`
|
||||
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
|
||||
{% trans "Loading" %}...
|
||||
`
|
||||
);
|
||||
$("#form-signin").submit();
|
||||
$('body').addClass('signin-page');
|
||||
|
||||
// Toggle password visibility
|
||||
$('#btn-toggle-pwd').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
var $pwd = $('#id_password');
|
||||
var $icon = $('#toggle-icon');
|
||||
if ($pwd.attr('type') === 'password') {
|
||||
$pwd.attr('type', 'text');
|
||||
$icon.removeClass('bi-eye').addClass('bi-eye-slash');
|
||||
} else {
|
||||
$pwd.attr('type', 'password');
|
||||
$icon.removeClass('bi-eye-slash').addClass('bi-eye');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Submit loading state
|
||||
$('#form-signin').on('submit', function() {
|
||||
var $btn = $('#btn-signin');
|
||||
$btn.prop('disabled', true);
|
||||
$btn.html(
|
||||
'<span class="spinner-border spinner-border-sm me-2" role="status" aria-hidden="true"></span>' +
|
||||
'{% trans "Signing in..." %}'
|
||||
);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock script%}
|
||||
{% endblock script %}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,42 @@
|
|||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% block title %}
|
||||
{% trans "WebVirtCloud" %} - {% trans "Sign Out"%}
|
||||
{% endblock %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}{% trans "WebVirtCloud" %} - {% trans "Signed Out" %}{% endblock title %}
|
||||
|
||||
{% block style %}
|
||||
<link href="{% static "css/signin.css" %}" rel="stylesheet">
|
||||
{% endblock style %}
|
||||
|
||||
{% block content %}
|
||||
<div>
|
||||
<div class="page-header">
|
||||
<a href="/"><h1>WebVirtCloud</h1></a>
|
||||
</div>
|
||||
<div class="col-12" role="main">
|
||||
<div class="logout">
|
||||
<h2>{% trans "Successful log out" %}</h2>
|
||||
<div class="signin-wrapper">
|
||||
<div class="signin-card text-center">
|
||||
<div class="signin-brand mb-4">
|
||||
<div class="signin-logo-badge" style="background: linear-gradient(135deg, #059669 0%, #10b981 100%); box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.45);">
|
||||
<i class="bi bi-check-lg"></i>
|
||||
</div>
|
||||
<h1 class="signin-title">{% trans "Signed Out" %}</h1>
|
||||
<p class="signin-subtitle">{% trans "You have been successfully signed out." %}</p>
|
||||
</div>
|
||||
|
||||
<div class="d-grid mt-4">
|
||||
<a href="{% url 'accounts:login' %}" class="btn-signin-submit text-decoration-none">
|
||||
<i class="bi bi-box-arrow-in-right"></i>
|
||||
<span>{% trans "Sign In Again" %}</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="signin-footer justify-content-center mt-4">
|
||||
<span class="text-slate-500">WebVirtCloud • KVM / Libvirt</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('body').addClass('signin-page');
|
||||
});
|
||||
</script>
|
||||
{% endblock script %}
|
||||
|
|
|
|||
|
|
@ -1,81 +1,326 @@
|
|||
/* body {
|
||||
background: rgba(203,203,203,1)
|
||||
} */
|
||||
.login-box {
|
||||
margin-top: 25%;
|
||||
display: block;
|
||||
align-content: center;
|
||||
/*
|
||||
* WebVirtCloud Modern Authentication Stylesheet
|
||||
* Responsive, dark-themed, glassmorphic layout for KVM / Libvirt cloud console
|
||||
*/
|
||||
|
||||
/* ==========================================================================
|
||||
Page Layout & Ambient Background
|
||||
========================================================================== */
|
||||
|
||||
body:has(.signin-wrapper),
|
||||
body.signin-page {
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0 !important;
|
||||
background-color: #090d16;
|
||||
background-image:
|
||||
radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
|
||||
radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
|
||||
radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
|
||||
radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 100%);
|
||||
background-attachment: fixed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: 0px 0px 20px black;
|
||||
border-radius: 5px;
|
||||
padding-top: 5%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
h1 {
|
||||
color:#212529;
|
||||
}
|
||||
h2 {
|
||||
color:#212529;
|
||||
justify-content: center;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
color: #e2e8f0;
|
||||
}
|
||||
|
||||
.form-signin {
|
||||
max-width: 330px;
|
||||
padding: 15px;
|
||||
margin: 50px auto;
|
||||
/* Neutralize base.html container wrapper for signin pages */
|
||||
body:has(.signin-wrapper) > .container,
|
||||
body.signin-page > .container {
|
||||
max-width: 100% !important;
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
padding: 2rem 1rem !important;
|
||||
margin: 0 !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.form-signin .form-signin-heading,
|
||||
.form-signin .checkbox {
|
||||
margin-bottom: 10px;
|
||||
body:has(.signin-wrapper) > .container > .row,
|
||||
body.signin-page > .container > .row {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Sign In Card Component
|
||||
========================================================================== */
|
||||
|
||||
.signin-wrapper {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.signin-card {
|
||||
width: 100%;
|
||||
max-width: 440px;
|
||||
background: rgba(17, 24, 39, 0.88);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 20px;
|
||||
padding: 2.75rem 2.25rem 2rem;
|
||||
box-shadow:
|
||||
0 25px 50px -12px rgba(0, 0, 0, 0.65),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.04),
|
||||
0 0 45px -5px rgba(37, 99, 235, 0.15);
|
||||
animation: signinCardEnter 0.35s ease-out;
|
||||
}
|
||||
|
||||
@keyframes signinCardEnter {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(12px) scale(0.98);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Brand & Logo Section
|
||||
========================================================================== */
|
||||
|
||||
.signin-brand {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.form-signin .checkbox {
|
||||
font-weight: normal;
|
||||
.signin-logo-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 18px;
|
||||
background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #6366f1 100%);
|
||||
color: #ffffff;
|
||||
font-size: 1.85rem;
|
||||
box-shadow:
|
||||
0 10px 25px -4px rgba(37, 99, 235, 0.5),
|
||||
inset 0 1px 1px rgba(255, 255, 255, 0.35);
|
||||
margin-bottom: 1.15rem;
|
||||
transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
}
|
||||
|
||||
.form-signin .form-control {
|
||||
.signin-logo-badge:hover {
|
||||
transform: translateY(-2px) scale(1.05);
|
||||
}
|
||||
|
||||
.signin-title {
|
||||
font-size: 1.65rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.025em;
|
||||
color: #f8fafc;
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.signin-subtitle {
|
||||
font-size: 0.875rem;
|
||||
color: #94a3b8;
|
||||
margin-bottom: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Input Groups & Form Controls
|
||||
========================================================================== */
|
||||
|
||||
.signin-field-label {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
color: #cbd5e1;
|
||||
margin-bottom: 0.45rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.signin-input-group {
|
||||
position: relative;
|
||||
font-size: 16px;
|
||||
height: auto;
|
||||
padding: 10px;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
border-radius: 12px;
|
||||
background: rgba(30, 41, 59, 0.55);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.form-signin .form-control:focus {
|
||||
z-index: 2;
|
||||
.signin-input-group:focus-within {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
|
||||
background: rgba(30, 41, 59, 0.85);
|
||||
}
|
||||
|
||||
.form-signin input[type="text"] {
|
||||
margin-bottom: 10px;
|
||||
border-radius: 5px;
|
||||
.signin-input-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 0.875rem;
|
||||
color: #64748b;
|
||||
font-size: 1.1rem;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.form-signin input[type="password"] {
|
||||
margin-bottom: 10px;
|
||||
border-radius: 5px;
|
||||
.signin-input-group:focus-within .signin-input-icon {
|
||||
color: #3b82f6;
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
}
|
||||
.btn-success:hover {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
.signin-input {
|
||||
flex: 1;
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
color: #f8fafc !important;
|
||||
padding: 0.75rem 0.875rem 0.75rem 0;
|
||||
font-size: 0.95rem;
|
||||
outline: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.logout {
|
||||
margin: 100px auto;
|
||||
text-align: center;
|
||||
.signin-input::placeholder {
|
||||
color: #64748b;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
.signin-toggle-pwd {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #64748b;
|
||||
padding: 0 0.875rem;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
.signin-toggle-pwd:hover,
|
||||
.signin-toggle-pwd:focus {
|
||||
color: #94a3b8;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.signin-link {
|
||||
color: #60a5fa;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.signin-link:hover {
|
||||
color: #93c5fd;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Submit Button
|
||||
========================================================================== */
|
||||
|
||||
.btn-signin-submit {
|
||||
width: 100%;
|
||||
padding: 0.8rem 1.5rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.01em;
|
||||
border-radius: 12px;
|
||||
color: #ffffff;
|
||||
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
box-shadow:
|
||||
0 4px 14px rgba(37, 99, 235, 0.4),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.btn-signin-submit:hover:not(:disabled) {
|
||||
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
|
||||
box-shadow:
|
||||
0 6px 20px rgba(37, 99, 235, 0.55),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
||||
transform: translateY(-1px);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.btn-signin-submit:active:not(:disabled) {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
|
||||
}
|
||||
|
||||
.btn-signin-submit:disabled {
|
||||
opacity: 0.75;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Alerts & Notifications
|
||||
========================================================================== */
|
||||
|
||||
.signin-alert {
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
border: 1px solid rgba(239, 68, 68, 0.3);
|
||||
color: #fca5a5;
|
||||
border-radius: 12px;
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
margin-bottom: 1.5rem;
|
||||
animation: signinShakeX 0.4s ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes signinShakeX {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
20%, 60% { transform: translateX(-4px); }
|
||||
40%, 80% { transform: translateX(4px); }
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Footer & Status Indicator
|
||||
========================================================================== */
|
||||
|
||||
.signin-footer {
|
||||
margin-top: 1.75rem;
|
||||
padding-top: 1.25rem;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 0.75rem;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.pulse-indicator {
|
||||
display: inline-block;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: #10b981;
|
||||
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
|
||||
animation: pulseGreen 2s infinite;
|
||||
margin-right: 0.45rem;
|
||||
}
|
||||
|
||||
@keyframes pulseGreen {
|
||||
0% {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
|
||||
}
|
||||
70% {
|
||||
transform: scale(1);
|
||||
box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
|
||||
}
|
||||
100% {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue