mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
refactor(accounts): the sign-in pages on Bootstrap components instead of signin.css
static/css/signin.css (308 lines) gave the sign-in and two-factor sign-in pages their own components: a card, input groups, a submit button, a footer and a status dot, with gradients, a blurred card, entry and pulse animations, and rules that undid base.html's layout (its container, its padding) from a "signin-page" class the pages' scripts put on the body. The pages are Bootstrap now: a card in the grid's centre column, the logo a rounded-3 bg-primary block, the fields Bootstrap input-groups with the password toggle an outline button, the submit a w-100 btn-primary, the footer a border-top line with a rounded-circle dot. They follow the selected Bootswatch theme like every other page. signin.css, its body class and its decoration go; so does the footer's "v2.0.0", a version the panel never had. The sign-out page (logout.html) was never shown: LOGOUT_REDIRECT_URL sends a signed-out user to the sign-in page. It goes, with the view's template name.
This commit is contained in:
parent
965cf0080c
commit
e59870a660
5 changed files with 104 additions and 469 deletions
|
|
@ -1,77 +1,71 @@
|
|||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
{% load django_bootstrap5 %}
|
||||
|
||||
{% block title %}{% trans "WebVirtCloud" %} - {% trans "Sign In with OTP" %}{% endblock title %}
|
||||
|
||||
{% block style %}
|
||||
<link href="{% static "css/signin.css" %}" rel="stylesheet">
|
||||
{% endblock style %}
|
||||
|
||||
{% block content %}
|
||||
<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 d-flex align-items-center mb-4" role="alert">
|
||||
<i class="bi bi-exclamation-triangle-fill fs-5 me-2 flex-shrink-0"></i>
|
||||
<div>{% bootstrap_form_errors form %}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<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 class="row justify-content-center pt-5">
|
||||
<div class="col-sm-9 col-md-7 col-lg-6">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body p-4 p-sm-5">
|
||||
<div class="text-center mb-4">
|
||||
<div class="d-inline-block rounded-3 bg-primary text-white fs-2 lh-1 p-3 mb-3"><i class="bi bi-shield-check"></i></div>
|
||||
<h1 class="h3 fw-bold mb-1">{% trans "Two-Factor Auth" %}</h1>
|
||||
<p class="text-body-secondary small mb-0">{% trans "Enter your authentication code to continue" %}</p>
|
||||
</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>
|
||||
{% if form.errors %}
|
||||
<div class="alert alert-danger d-flex align-items-center mb-4" role="alert">
|
||||
<i class="bi bi-exclamation-triangle-fill fs-5 me-2 flex-shrink-0"></i>
|
||||
<div>{% bootstrap_form_errors form %}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form id="form-signin" method="post" aria-label="OTP Login form">
|
||||
{% csrf_token %}
|
||||
<div class="mb-3">
|
||||
<label class="form-label small fw-medium" for="id_username">{% trans "Username" %}</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-person"></i></span>
|
||||
<input type="text" id="id_username" class="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="form-label small fw-medium" for="id_password">{% trans "Password" %}</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-shield-lock"></i></span>
|
||||
<input type="password" id="id_password" class="form-control" name="password" placeholder="{% trans 'Enter password' %}" required>
|
||||
<button class="btn btn-outline-secondary" 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-2">
|
||||
<label class="form-label small fw-medium mb-0" for="id_otp_token">{% trans "Security Code" %}</label>
|
||||
<a href="{% url 'accounts:email_otp' %}" class="small">{% trans "Lost OTP?" %}</a>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-key"></i></span>
|
||||
<input type="text" id="id_otp_token" class="form-control font-monospace" name="otp_token" placeholder="000000" inputmode="numeric" pattern="[0-9]*" maxlength="6" autofocus>
|
||||
</div>
|
||||
<div class="form-text">{% trans "Leave empty if you have not set up two-factor authentication." %}</div>
|
||||
</div>
|
||||
|
||||
<button id="btn-signin" class="btn btn-primary w-100 py-2" type="submit">
|
||||
<i class="bi bi-shield-lock-fill me-1"></i>
|
||||
<span id="btn-text">{% trans "Verify & Sign In" %}</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="d-flex align-items-center small text-body-secondary border-top mt-4 pt-3">
|
||||
<span class="d-inline-block rounded-circle p-1 bg-success me-2" aria-hidden="true"></span>
|
||||
{% trans "2FA Protection Active" %}
|
||||
</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>
|
||||
</div>
|
||||
<small class="text-muted">{% trans "Leave empty if you have not set up two-factor authentication." %}</small>
|
||||
</div>
|
||||
|
||||
<button id="btn-signin" class="btn btn-primary 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>
|
||||
|
|
@ -80,8 +74,6 @@
|
|||
{% block script %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('body').addClass('signin-page');
|
||||
|
||||
// Toggle password visibility
|
||||
$('#btn-toggle-pwd').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
|
|
@ -1,66 +1,60 @@
|
|||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}{% trans "WebVirtCloud" %} - {% trans "Sign In" %}{% endblock title %}
|
||||
|
||||
{% block style %}
|
||||
<link href="{% static "css/signin.css" %}" rel="stylesheet">
|
||||
{% endblock style %}
|
||||
|
||||
{% block content %}
|
||||
<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 d-flex align-items-center mb-4" role="alert">
|
||||
<i class="bi bi-exclamation-triangle-fill fs-5 me-2 flex-shrink-0"></i>
|
||||
<div>{% trans "Incorrect username or password." %}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<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 class="row justify-content-center pt-5">
|
||||
<div class="col-sm-9 col-md-7 col-lg-6">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body p-4 p-sm-5">
|
||||
<div class="text-center mb-4">
|
||||
<div class="d-inline-block rounded-3 bg-primary text-white fs-2 lh-1 p-3 mb-3"><i class="bi bi-hdd-network"></i></div>
|
||||
<h1 class="h3 fw-bold mb-1">WebVirtCloud</h1>
|
||||
<p class="text-body-secondary small mb-0">{% trans "Virtualization Management Console" %}</p>
|
||||
</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>
|
||||
{% if form.errors %}
|
||||
<div class="alert alert-danger d-flex align-items-center mb-4" role="alert">
|
||||
<i class="bi bi-exclamation-triangle-fill fs-5 me-2 flex-shrink-0"></i>
|
||||
<div>{% trans "Incorrect username or password." %}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form id="form-signin" method="post" aria-label="Login form">
|
||||
{% csrf_token %}
|
||||
<div class="mb-3">
|
||||
<label class="form-label small fw-medium" for="id_username">{% trans "Username" %}</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-person"></i></span>
|
||||
<input type="text" id="id_username" class="form-control" name="username" placeholder="{% trans 'Enter username' %}" autocapitalize="none" autocorrect="off" autofocus required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label small fw-medium" for="id_password">{% trans "Password" %}</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-shield-lock"></i></span>
|
||||
<input type="password" id="id_password" class="form-control" name="password" placeholder="{% trans 'Enter password' %}" required>
|
||||
<button class="btn btn-outline-secondary" 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 btn-primary w-100 py-2" type="submit">
|
||||
<i class="bi bi-box-arrow-in-right me-1"></i>
|
||||
<span id="btn-text">{% trans "Sign In" %}</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="d-flex align-items-center small text-body-secondary border-top mt-4 pt-3">
|
||||
<span class="d-inline-block rounded-circle p-1 bg-success me-2" aria-hidden="true"></span>
|
||||
KVM / Libvirt
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
|
||||
<button id="btn-signin" class="btn btn-primary 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>
|
||||
|
|
@ -69,8 +63,6 @@
|
|||
{% block script %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('body').addClass('signin-page');
|
||||
|
||||
// Toggle password visibility
|
||||
$('#btn-toggle-pwd').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% 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 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 %}
|
||||
|
|
@ -9,7 +9,8 @@ from .otp import SingleDeviceOTPForm
|
|||
app_name = "accounts"
|
||||
|
||||
urlpatterns = [
|
||||
path("logout/", LogoutView.as_view(template_name="logout.html"), name="logout"),
|
||||
# LOGOUT_REDIRECT_URL sends a signed-out user to the sign-in page
|
||||
path("logout/", LogoutView.as_view(), name="logout"),
|
||||
path("profile/", views.profile, name="profile"),
|
||||
path("profile/<int:user_id>/", views.account, name="account"),
|
||||
path("profile/<int:user_id>/api_token/<str:token_key>/delete/", views.api_token_delete,
|
||||
|
|
|
|||
|
|
@ -1,308 +0,0 @@
|
|||
/*
|
||||
* WebVirtCloud Modern Authentication Stylesheet
|
||||
* 100% Theme-Compatible: Dynamically inherits Bootswatch & Bootstrap 5 theme variables
|
||||
* (colors, typography, radii, alerts, buttons, shadows)
|
||||
*/
|
||||
|
||||
/* ==========================================================================
|
||||
Page Layout & Theme Ambient Background
|
||||
========================================================================== */
|
||||
|
||||
body:has(.signin-wrapper),
|
||||
body.signin-page {
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0 !important;
|
||||
background-color: var(--bs-body-bg, #f8fafc);
|
||||
background-image:
|
||||
radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--bs-primary-rgb), 0.16) 0%, transparent 60%),
|
||||
radial-gradient(circle at 10% 90%, rgba(var(--bs-primary-rgb), 0.06) 0%, transparent 40%),
|
||||
radial-gradient(circle at 90% 90%, rgba(var(--bs-primary-rgb), 0.06) 0%, transparent 40%);
|
||||
background-attachment: fixed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: var(--bs-body-font-family, system-ui, -apple-system, sans-serif);
|
||||
color: var(--bs-body-color, #212529);
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
body:has(.signin-wrapper) > .container > .row,
|
||||
body.signin-page > .container > .row {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Sign In Card Component (Adapts to Light / Dark Themes)
|
||||
========================================================================== */
|
||||
|
||||
.signin-wrapper {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.signin-card {
|
||||
width: 100%;
|
||||
max-width: 440px;
|
||||
background-color: var(--bs-card-bg, var(--bs-body-bg, #ffffff));
|
||||
border: 1px solid var(--bs-border-color-translucent, var(--bs-border-color, rgba(0, 0, 0, 0.125)));
|
||||
border-radius: var(--bs-border-radius-xl, 1.25rem);
|
||||
padding: 2.75rem 2.25rem 2rem;
|
||||
box-shadow:
|
||||
0 20px 40px -15px rgba(0, 0, 0, 0.12),
|
||||
0 0 0 1px var(--bs-border-color-translucent, rgba(0, 0, 0, 0.05)),
|
||||
0 0 35px -5px rgba(var(--bs-primary-rgb), 0.1);
|
||||
color: var(--bs-body-color, #212529);
|
||||
animation: signinCardEnter 0.35s ease-out;
|
||||
}
|
||||
|
||||
@supports (backdrop-filter: blur(16px)) {
|
||||
.signin-card {
|
||||
background-color: rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.92);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
}
|
||||
}
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
.signin-logo-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: var(--bs-border-radius-lg, 16px);
|
||||
background: var(--bs-primary);
|
||||
background: linear-gradient(135deg, var(--bs-primary) 0%, rgba(var(--bs-primary-rgb), 0.85) 100%);
|
||||
color: #ffffff;
|
||||
font-size: 1.85rem;
|
||||
box-shadow:
|
||||
0 10px 24px -4px rgba(var(--bs-primary-rgb), 0.42),
|
||||
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);
|
||||
}
|
||||
|
||||
.signin-logo-badge:hover {
|
||||
transform: translateY(-2px) scale(1.05);
|
||||
}
|
||||
|
||||
.signin-title {
|
||||
font-size: 1.65rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.025em;
|
||||
color: var(--bs-body-color, #212529);
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.signin-subtitle {
|
||||
font-size: 0.875rem;
|
||||
color: var(--bs-secondary-color, var(--bs-gray-600, #6c757d));
|
||||
margin-bottom: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Input Groups & Form Controls
|
||||
========================================================================== */
|
||||
|
||||
.signin-field-label {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
color: var(--bs-body-color, #212529);
|
||||
margin-bottom: 0.45rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.signin-input-group {
|
||||
position: relative;
|
||||
border-radius: var(--bs-border-radius, 0.375rem);
|
||||
background: rgba(var(--bs-body-color-rgb), 0.035);
|
||||
border: 1px solid var(--bs-border-color, #dee2e6);
|
||||
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.signin-input-group:focus-within {
|
||||
border-color: var(--bs-primary);
|
||||
box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
|
||||
background: var(--bs-body-bg, #ffffff);
|
||||
}
|
||||
|
||||
.signin-input-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 0.875rem;
|
||||
color: var(--bs-secondary-color, var(--bs-gray-600, #6c757d));
|
||||
font-size: 1.1rem;
|
||||
transition: color 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
.signin-input-group:focus-within .signin-input-icon {
|
||||
color: var(--bs-primary);
|
||||
}
|
||||
|
||||
.signin-input {
|
||||
flex: 1;
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
color: var(--bs-body-color) !important;
|
||||
padding: 0.75rem 0.875rem 0.75rem 0;
|
||||
font-size: 0.95rem;
|
||||
outline: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.signin-input::placeholder {
|
||||
color: var(--bs-secondary-color, var(--bs-gray-600, #6c757d));
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
.signin-toggle-pwd {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--bs-secondary-color, var(--bs-gray-600, #6c757d));
|
||||
padding: 0 0.875rem;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: color 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
.signin-toggle-pwd:hover,
|
||||
.signin-toggle-pwd:focus {
|
||||
color: var(--bs-primary);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.signin-link {
|
||||
color: var(--bs-link-color, var(--bs-primary));
|
||||
text-decoration: none;
|
||||
transition: color 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
.signin-link:hover {
|
||||
color: var(--bs-link-hover-color, var(--bs-primary));
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Submit Button
|
||||
========================================================================== */
|
||||
|
||||
.btn-signin-submit {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.01em;
|
||||
border-radius: var(--bs-border-radius, 0.375rem);
|
||||
color: #ffffff;
|
||||
background-color: var(--bs-primary);
|
||||
border: 1px solid var(--bs-primary);
|
||||
box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.35);
|
||||
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-color: var(--bs-primary);
|
||||
filter: brightness(1.08);
|
||||
box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.45);
|
||||
transform: translateY(-1px);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.btn-signin-submit:active:not(:disabled) {
|
||||
transform: translateY(0);
|
||||
filter: brightness(0.95);
|
||||
box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.25);
|
||||
}
|
||||
|
||||
.btn-signin-submit:disabled {
|
||||
opacity: 0.75;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Footer & Status Indicator
|
||||
========================================================================== */
|
||||
|
||||
.signin-footer {
|
||||
margin-top: 1.75rem;
|
||||
padding-top: 1.25rem;
|
||||
border-top: 1px solid var(--bs-border-color-translucent, rgba(var(--bs-body-color-rgb), 0.1));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 0.75rem;
|
||||
color: var(--bs-secondary-color, var(--bs-gray-600, #6c757d));
|
||||
}
|
||||
|
||||
.pulse-indicator {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--bs-success, #198754);
|
||||
box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb, 25, 135, 84), 0.7);
|
||||
animation: pulseStatus 2s infinite;
|
||||
margin-right: 0.45rem;
|
||||
}
|
||||
|
||||
@keyframes pulseStatus {
|
||||
0% {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb, 25, 135, 84), 0.7);
|
||||
}
|
||||
70% {
|
||||
transform: scale(1);
|
||||
box-shadow: 0 0 0 6px rgba(var(--bs-success-rgb, 25, 135, 84), 0);
|
||||
}
|
||||
100% {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb, 25, 135, 84), 0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue