added registration

This commit is contained in:
SlimusMinus
2026-05-04 00:48:50 +03:00
parent cc4fcfd3dc
commit aee1213ff9
8 changed files with 742 additions and 172 deletions

289
src/styles/auth.css Normal file
View File

@@ -0,0 +1,289 @@
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');
/* ─── Page ──────────────────────────────────────────────────────────────────── */
.auth-page {
font-family: 'Nunito', sans-serif;
min-height: 100vh;
display: flex; align-items: center; justify-content: center;
background: radial-gradient(ellipse at 30% 40%, #1a2340 0%, #0d1018 60%);
overflow: hidden; position: relative;
}
.bg-glow {
position: fixed; top: 40%; right: 0;
width: 500px; height: 400px;
background: radial-gradient(ellipse, #0f2a22 0%, transparent 70%);
pointer-events: none; opacity: 0.7;
}
/* ─── Floating icons ────────────────────────────────────────────────────────── */
.fi {
position: fixed;
opacity: 0.13;
pointer-events: none;
user-select: none;
animation: float 7s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0) rotate(-6deg); }
50% { transform: translateY(-18px) rotate(6deg); }
}
/* ─── Card ──────────────────────────────────────────────────────────────────── */
.auth-card {
position: relative; z-index: 10; width: 375px;
background: linear-gradient(155deg, #1d2436 0%, #131720 100%);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 30px; padding: 36px 38px 30px;
box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
/* height transition — карточка плавно меняет размер при смене формы */
transition: height 0.35s ease;
overflow: hidden;
}
/* Появление карточки / контента */
.card-in {
animation: cardIn .45s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes cardIn {
from { opacity: 0; transform: scale(.92) translateY(30px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
/* Уход карточки при переключении */
.card-out {
animation: cardOut .3s cubic-bezier(.4,0,.6,1) both;
}
@keyframes cardOut {
from { opacity: 1; transform: scale(1) translateY(0); }
to { opacity: 0; transform: scale(.94) translateY(-20px); }
}
/* Контент формы — появляется снизу при смене */
.form-body {
animation: formIn .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes formIn {
from { opacity: 0; transform: translateY(22px); }
to { opacity: 1; transform: translateY(0); }
}
/* Переход между шагами регистрации */
@keyframes stepIn {
from { opacity: 0; transform: translateX(18px) scale(.98); }
to { opacity: 1; transform: translateX(0) scale(1); }
}
/* ─── Logo ──────────────────────────────────────────────────────────────────── */
.logo-wrap { text-align: center; margin-bottom: 2px; }
@keyframes logoPulse {
0%, 100% { filter: drop-shadow(0 0 18px rgba(45,224,200,.45)); }
50% { filter: drop-shadow(0 0 38px rgba(45,224,200,.8)); }
}
/* Apply this class to your MagnifierLogo svg if needed */
.logo-pulse { animation: logoPulse 3s ease-in-out infinite; }
/* ─── Typography ────────────────────────────────────────────────────────────── */
.auth-title {
text-align: center; color: #fff;
font-size: 2rem; font-weight: 900;
letter-spacing: -0.5px; margin: 12px 0 0;
}
.form-subtitle {
text-align: center; color: rgba(255,255,255,0.35);
font-size: 0.83rem; margin: 4px 0 20px;
}
/* ─── Step dots ─────────────────────────────────────────────────────────────── */
.step-dots {
display: flex; align-items: center; justify-content: center;
gap: 6px; margin-bottom: 18px;
}
.dot {
width: 8px; height: 8px; border-radius: 50%;
background: rgba(255,255,255,0.15);
transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
}
.dot-active {
width: 26px; border-radius: 4px;
background: #2de0c8;
}
.dot-done {
background: rgba(45,224,200,0.4);
}
/* ─── Fields ────────────────────────────────────────────────────────────────── */
.field-wrap { margin-bottom: 12px; }
.field-label {
display: block; color: rgba(255,255,255,0.45);
font-size: 0.73rem; font-weight: 700;
letter-spacing: 0.6px; margin-bottom: 5px;
text-transform: uppercase; font-family: 'Nunito', sans-serif;
}
.field {
width: 100%; box-sizing: border-box;
background: rgba(255,255,255,0.055);
border: 1.5px solid rgba(255,255,255,0.09);
border-radius: 14px; padding: 13px 18px;
color: #fff; font-family: 'Nunito', sans-serif;
font-size: 0.93rem; outline: none;
transition: border-color .2s, background .2s, box-shadow .2s;
}
.field:focus {
border-color: #2de0c8;
background: rgba(45,224,200,.07);
box-shadow: 0 0 0 3px rgba(45,224,200,.12);
}
.field::placeholder { color: rgba(255,255,255,.32); }
.field-err { border-color: rgba(255,107,107,0.55) !important; box-shadow: 0 0 0 3px rgba(255,107,107,0.09) !important; }
.field-ok { border-color: rgba(45,224,200,0.45) !important; }
.eye-btn {
position: absolute; right: 13px; top: 50%;
transform: translateY(-50%);
background: none; border: none; cursor: pointer;
color: rgba(255,255,255,0.35); font-size: 1.05rem; line-height: 1;
padding: 0;
}
.input-wrap {
position: relative;
}
.input-wrap .eye-btn {
position: absolute;
right: 13px;
top: 50%;
transform: translateY(-50%);
}
.input-wrap .field {
padding-right: 44px;
}
/* ─── Password strength ──────────────────────────────────────────────────────── */
.strength-bar { display: flex; gap: 4px; margin-top: 7px; }
.seg {
flex: 1; height: 3px; border-radius: 2px;
background: rgba(255,255,255,0.1);
transition: background 0.3s;
}
.sw { background: #ff6b6b; }
.sm { background: #ffd166; }
.ss { background: #2de0c8; }
.strength-label { font-size: 0.72rem; text-align: right; margin-top: 3px; }
/* ─── Messages ──────────────────────────────────────────────────────────────── */
.err-msg {
color: #ff6b6b; font-size: 0.8rem;
margin-top: 5px; padding-left: 2px;
font-family: 'Nunito', sans-serif;
}
/* ─── Confirm box ───────────────────────────────────────────────────────────── */
.confirm-box {
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 18px; padding: 16px 20px; margin-bottom: 14px;
}
.confirm-row { display: flex; justify-content: space-between; align-items: center; }
.confirm-label { color: rgba(255,255,255,0.4); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.confirm-val { color: #fff; font-weight: 700; }
.confirm-val.accent { color: #2de0c8; }
.confirm-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 10px 0; }
/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
width: 100%;
background: linear-gradient(90deg, #1fc9b0, #2de0c8, #1fc9b0);
background-size: 200% 100%;
border: none; border-radius: 14px; padding: 15px;
color: #082320; font-family: 'Nunito', sans-serif;
font-size: 1.05rem; font-weight: 900; cursor: pointer;
margin-top: 6px;
box-shadow: 0 6px 24px rgba(45,224,200,0.32);
animation: shimmer 3s linear infinite;
transition: opacity .15s, transform .15s;
}
.btn-primary:hover:not(:disabled) { opacity: .88; transform: translateY(-2px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
@keyframes shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
.ghost-btn {
display: block; width: 100%; text-align: center;
color: #2de0c8; font-size: 0.87rem; margin-top: 13px;
background: none; border: none; cursor: pointer;
font-family: 'Nunito', sans-serif;
transition: opacity .15s;
}
.ghost-btn:hover { opacity: 0.75; }
.back-btn {
display: block; width: 100%; text-align: center;
color: rgba(255,255,255,0.35); font-size: 0.85rem; margin-top: 11px;
background: none; border: none; cursor: pointer;
font-family: 'Nunito', sans-serif;
transition: color .15s;
}
.back-btn:hover { color: rgba(255,255,255,0.6); }
/* ─── Switch row ────────────────────────────────────────────────────────────── */
.switch-row {
text-align: center; color: rgba(255,255,255,0.4);
font-size: 0.87rem; margin-top: 13px;
}
.link-btn {
color: #2de0c8; background: none; border: none;
cursor: pointer; font-family: 'Nunito', sans-serif;
font-size: inherit; font-weight: 700; padding: 0;
transition: opacity .15s;
}
.link-btn:hover { opacity: 0.75; text-decoration: underline; }
/* ─── Dots btn ──────────────────────────────────────────────────────────────── */
.dots-btn {
position: absolute; top: 18px; right: 20px;
background: none; border: none;
color: rgba(255,255,255,0.25); font-size: 1.3rem;
cursor: pointer; letter-spacing: 3px;
}
/* ─── Success ───────────────────────────────────────────────────────────────── */
.success-wrap { text-align: center; padding: 16px 0 8px; }
.success-icon {
font-size: 3.8rem; display: block; margin-bottom: 14px;
animation: pop .55s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes pop {
from { transform: scale(0) rotate(-20deg); opacity: 0; }
to { transform: scale(1) rotate(0deg); opacity: 1; }
}
.success-title { color: #2de0c8; font-size: 1.45rem; font-weight: 900; margin-bottom: 6px; }
.success-sub { color: rgba(255,255,255,0.4); font-size: 0.88rem; line-height: 1.5; }
.success-wrap {
display: flex;
flex-direction: column;
align-items: center;
}
.success-icon {
background-color: #2de0c8;
-webkit-mask: url("../assets/success.png") no-repeat center;
mask: url("../assets/success.png") no-repeat center;
}
.logoSvg {
width: 130px;
height: 130px;
animation: logoPulse 3s ease-in-out infinite;
}