Files
Kelx/public/login.css
T
2026-06-10 17:04:11 +00:00

775 lines
16 KiB
CSS

:root {
--shadow-offset: 0;
--shadow-blur: 15px;
--shadow-spread: -5px;
--shadow-color: rgba(255, 255, 255, 0.7);
--tint-color: 255, 255, 255;
--tint-opacity: 0.10;
--frost-blur: 5px;
--noise-frequency: 0.010;
--distortion-strength: 150;
--outer-shadow-blur: 24px;
--menu-top: 100rem;
--menu-left: -5rem;
--watermark-offset-x: 3.5rem;
--login-card-width: min(450px, calc(100vw - 48px));
--login-form-width: min(380px, calc(100vw - 48px));
--login-card-height: 470px;
--login-card-height-2fa: 540px;
--login-form-top: calc(50% + 20px);
--login-form-top-2fa: calc(50% - 4px);
--login-icon-top: calc(50% - 190px);
--login-icon-top-2fa: calc(50% - 218px);
--login-title-top: calc(50% - 104px);
--login-title-top-2fa: calc(50% - 130px);
--login-desc-top: calc(50% - 66px);
--login-desc-top-2fa: calc(50% - 92px);
--login-subline-top: calc(50% - 46px);
--login-subline-top-2fa: calc(50% - 72px);
}
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
body {
font-family: sans-serif;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-attachment: fixed;
background-color: #06080d;
color: white;
display: flex;
flex-direction: column;
align-items: center;
}
@media (max-width: 768px) {
body {
background-attachment: scroll;
}
}
.login-form {
position: absolute;
top: var(--login-form-top);
left: 50%;
display: flex;
flex-direction: column;
user-select: none;
gap: 12px;
width: var(--login-form-width);
margin: 0;
transform: translateX(-50%);
z-index: 100;
transition: top 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.login-has-2fa .login-form {
top: var(--login-form-top-2fa);
}
.input-icon {
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
color: #4f4f4f;
font-size: 16px;
z-index: 10;
transition: color 0.4s cubic-bezier(0.2, 0, 0, 1), opacity 0.4s cubic-bezier(0.2, 0, 0, 1);
pointer-events: none;
}
.input-holder {
position: relative;
display: flex;
align-items: center;
width: 100%;
margin-left: 0;
}
.login-two-factor-field {
max-height: 48px;
opacity: 1;
overflow: hidden;
transform: translateY(0);
transition:
max-height 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
opacity 220ms ease,
transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
margin 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
will-change: max-height, opacity, transform;
}
.login-two-factor-field[aria-hidden="true"] {
max-height: 0;
opacity: 0;
margin-top: -6px;
margin-bottom: -6px;
pointer-events: none;
transform: translateY(-8px);
}
.input-holder:hover .input-icon {
color: #3f3f3f;
}
.input-holder:focus-within .input-icon {
color: rgba(26, 26, 26, 0.78);
}
.login-input {
width: 100%;
margin: 0;
padding-left: 40px;
box-sizing: border-box;
}
input {
padding: 10px;
border: 1px solid transparent;
user-select: none;
border-radius: 10px;
background-color: #dbdbdb;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
transition: background-color 0.4s cubic-bezier(0.2, 0, 0, 1), border-color 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s cubic-bezier(0.2, 0, 0, 1);
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #424242;
}
input::placeholder {
color: #6a6a6a;
opacity: 1;
}
input:hover {
background-color: #d4d4d4;
}
input:focus {
background-color: rgba(255, 255, 255, 0.98);
border-color: #007aff;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(0, 122, 255, 0.3);
outline: none;
color: #1a1a1a;
caret-color: #1a1a1a;
}
input:focus::placeholder {
color: rgba(26, 26, 26, 0.55);
}
button {
padding: 10px;
background-color: #007bff;
border: none;
border-radius: 5px;
cursor: pointer;
color: white;
font-weight: bold;
}
.get-started {
position: relative;
border-radius: 12px;
height: 48px;
width: 100%;
user-select: none;
margin-top: 4px;
margin-left: 0;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 16px;
letter-spacing: 0;
font-weight: 600;
color: #ffffff;
background: linear-gradient(to bottom, #363636, #1a1a1a, #000000);
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 0;
transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.6s ease, box-shadow 0.6s ease, margin-top 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.get-started__logo {
width: 18px;
height: 18px;
object-fit: contain;
flex: 0 0 auto;
display: block;
margin: 0 6px 0 7px;
}
@media (max-width: 768px) {
.get-started {
margin-top: 4px;
}
}
.get-started:hover {
background: linear-gradient(to bottom, #404040, #2a2a2a, #111111);
transform: scale(0.995);
/* Extremely subtle press in effect */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.get-started:active {
transform: scale(0.98);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.error {
color: red;
margin-bottom: 10px;
text-align: center;
}
.menu {
position: absolute;
top: 50%;
left: 50%;
box-sizing: border-box;
width: var(--login-card-width);
height: var(--login-card-height);
border-radius: 30px;
padding: 30px;
margin: 0;
isolation: isolate;
box-shadow: 0px 6px var(--outer-shadow-blur) rgba(0, 0, 0, 0.2);
background-color: rgba(var(--tint-color), var(--tint-opacity));
border: 1px solid rgba(255, 255, 255, 0.25);
pointer-events: none;
transform: translate(-50%, -50%);
transition: height 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.login-has-2fa .menu {
height: var(--login-card-height-2fa);
}
.menu::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
border-radius: 30px;
box-shadow: inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
background-color: rgba(var(--tint-color), var(--tint-opacity));
}
.menu::after {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: 30px;
isolation: isolate;
}
.menu>* {
position: relative;
z-index: 1;
}
.forgot-password {
position: relative;
align-self: flex-end;
cursor: pointer;
color: #f5f5f7;
/* Matching pure white sub-tone */
user-select: none;
margin: -2px 0 0;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 16px;
font-weight: 500;
white-space: nowrap;
opacity: 0.65;
text-decoration: none !important;
transition: opacity 0.2s ease, text-shadow 0.2s ease;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.forgot-password:hover {
opacity: 1;
text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
/* Illuminates instead of changing color */
}
.video {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
object-fit: cover;
z-index: -1;
}
.sign-up {
position: absolute;
top: var(--login-title-top);
left: 50%;
color: #f5f5f7 !important;
user-select: none;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 24px;
font-weight: 600;
letter-spacing: 0;
z-index: 1;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
transform: translateX(-50%);
white-space: nowrap;
transition: top 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.login-has-2fa .sign-up {
top: var(--login-title-top-2fa);
}
.sign-up-desc {
position: absolute;
top: var(--login-desc-top);
left: 50%;
color: #a1a1a6;
user-select: none;
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 15px;
font-weight: 500;
letter-spacing: 0;
opacity: 1;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
transform: translateX(-50%);
white-space: nowrap;
transition: top 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.login-has-2fa .sign-up-desc {
top: var(--login-desc-top-2fa);
}
.sign-up-sublines {
position: absolute;
top: var(--login-subline-top);
left: 50%;
color: #86868b;
user-select: none;
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
font-weight: 500;
letter-spacing: 0;
opacity: 1;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
transform: translateX(-50%);
white-space: nowrap;
transition: top 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.login-has-2fa .sign-up-sublines {
top: var(--login-subline-top-2fa);
}
#watermark {
position: fixed;
pointer-events: none;
top: 20px;
left: 30px;
z-index: 999;
display: flex;
}
@media (max-width: 768px) {
#watermark {
top: 10px;
left: 20px;
}
}
#watermark img {
width: 160px;
height: auto;
object-fit: contain;
z-index: 1;
}
.circle-icon {
position: absolute;
top: calc(var(--login-icon-top) - var(--login-form-top));
left: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: white;
padding: 0;
border-radius: 15px;
height: 54px;
width: 54px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
margin: 0;
border: 1px solid #c4c4c4;
box-sizing: border-box;
z-index: 101;
transform: translateX(-50%);
transition: top 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.login-has-2fa .circle-icon {
top: calc(var(--login-icon-top-2fa) - var(--login-form-top-2fa));
}
.circle-icon__glyph {
color: #000;
font-size: 25px;
margin: 0;
}
@media (max-width: 768px) {
:root {
--login-card-width: min(420px, calc(100vw - 32px));
--login-form-width: min(360px, calc(100vw - 56px));
--login-card-height: 450px;
--login-card-height-2fa: 516px;
--login-form-top: calc(50% + 18px);
--login-form-top-2fa: calc(50% - 4px);
--login-icon-top: calc(50% - 182px);
--login-icon-top-2fa: calc(50% - 208px);
--login-title-top: calc(50% - 98px);
--login-title-top-2fa: calc(50% - 124px);
--login-desc-top: calc(50% - 60px);
--login-desc-top-2fa: calc(50% - 88px);
--login-subline-top: calc(50% - 40px);
--login-subline-top-2fa: calc(50% - 69px);
}
.login-form {
width: var(--login-form-width);
}
.menu {
font-size: 24px;
padding: 20px;
}
.sign-up-desc,
.sign-up-sublines {
width: calc(100vw - 56px);
white-space: normal;
}
}
.toast-host {
position: fixed;
top: 18px;
right: 5px;
z-index: 999999;
pointer-events: none;
}
.toast {
width: 300px;
transform: translateX(120%);
opacity: 0;
pointer-events: none;
will-change: transform, opacity;
}
.toast-inner {
background: rgba(255, 45, 85, 0.18);
border-radius: 16px;
padding: 14px 14px 12px;
box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
font-family: "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #fff;
}
.toast-msg {
font-weight: 600;
font-size: 16px;
margin-left: 10px;
text-align: center;
white-space: nowrap;
letter-spacing: 0.2px;
}
.toast-bar {
height: 6px;
margin-top: 10px;
border-radius: 9999px;
background: rgba(255, 255, 255, 0.18);
overflow: hidden;
position: relative;
}
.toast-bar::after {
content: "";
position: absolute;
inset: 0;
transform-origin: left;
background: rgba(255, 255, 255, 0.95);
animation: toastProgress 4500ms linear forwards;
}
.toast.toast-show {
animation: toastIn 320ms cubic-bezier(.2, .9, .2, 1) forwards;
}
.toast.toast-hide {
animation: toastOut 260ms cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes toastIn {
from {
transform: translateX(120%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes toastOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(120%);
opacity: 0;
}
}
@keyframes toastProgress {
from {
transform: scaleX(1);
}
to {
transform: scaleX(0);
}
}
.captcha-modal {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: 20px;
background: rgba(0, 0, 0, 0.6);
z-index: 100000;
}
.captcha-modal.show {
display: flex !important;
visibility: visible !important;
opacity: 1 !important;
pointer-events: auto !important;
z-index: 100000 !important;
}
.captcha-modal.show .captcha-modal__card {
visibility: visible !important;
opacity: 1 !important;
}
.captcha-modal__backdrop {
position: absolute;
inset: 0;
background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05), transparent 40%);
pointer-events: none;
}
.captcha-modal__card {
position: relative;
z-index: 1;
width: min(420px, 95vw);
background: rgba(18, 18, 18, 0.9);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 16px;
padding: 22px 20px 18px;
box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
font-family: "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #f2f2f2;
}
.captcha-modal__title {
font-size: 18px;
font-weight: 700;
margin: 0 0 6px;
}
.captcha-modal__title-icon {
margin-right: 8px;
color: #4ade80;
font-size: 18px;
}
.captcha-modal__desc {
margin: 0 0 14px;
font-size: 14px;
opacity: 0.85;
min-height: 18px;
}
.captcha-modal__widget {
min-height: 90px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
}
.login-form--blocked {
pointer-events: none;
opacity: 0.3;
}
.captcha-modal__widget #recaptchaWidget[hidden],
.captcha-modal__widget #cf-turnstile[hidden],
.captcha-modal__widget #hcaptchaWidget[hidden] {
display: none;
}
.local-captcha {
width: 100%;
}
.local-captcha__prompt {
font-size: 14px;
font-weight: 600;
margin-bottom: 10px;
color: #e0e0e0;
}
.local-captcha__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 6px;
margin-bottom: 12px;
}
.local-captcha__cell {
position: relative;
aspect-ratio: 1;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
border: 2px solid transparent;
transition: border-color 0.2s ease, transform 0.15s ease;
background: rgba(255, 255, 255, 0.05);
}
.local-captcha__cell:hover {
transform: scale(1.03);
border-color: rgba(255, 255, 255, 0.3);
}
.local-captcha__cell.selected {
border-color: #4ade80;
}
.local-captcha__cell.selected .local-captcha__check {
opacity: 1;
}
.local-captcha__cell img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
pointer-events: none;
-webkit-user-drag: none;
user-drag: none;
}
.local-captcha__check {
position: absolute;
top: 6px;
right: 6px;
width: 22px;
height: 22px;
background: #4ade80;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.2s ease;
color: #000;
font-size: 12px;
}
.local-captcha__footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.local-captcha__step {
font-size: 12px;
opacity: 0.7;
}
.local-captcha__submit {
padding: 8px 20px;
font-size: 13px;
font-weight: 600;
border-radius: 8px;
border: none;
background: linear-gradient(135deg, #4ade80, #22c55e);
color: #000;
cursor: pointer;
transition: all 0.2s ease;
}
.local-captcha__submit:hover {
background: linear-gradient(135deg, #22c55e, #16a34a);
}
.local-captcha__submit:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.local-captcha__status {
margin-top: 8px;
font-size: 13px;
text-align: center;
min-height: 18px;
}
.local-captcha__status[data-state="error"] {
color: #f87171;
}
.local-captcha__status[data-state="success"] {
color: #4ade80;
}
.local-captcha__status[data-state="muted"] {
color: #a3a3a3;
}