Release v0.20: регистрация, авторизация, личный кабинет

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shop
2026-05-16 17:31:56 +03:00
parent 4ea2b429b3
commit b3e3a06858
23 changed files with 981 additions and 27 deletions
+216
View File
@@ -396,4 +396,220 @@ a {
.features-grid {
grid-template-columns: 1fr;
}
.account-grid {
grid-template-columns: 1fr;
}
.user-greeting {
display: none;
}
}
/* Auth */
.inline-form {
display: inline;
margin: 0;
}
.user-greeting {
font-size: 0.9rem;
color: var(--text-muted);
margin-right: 0.25rem;
}
.alert {
margin: 1rem 0 0;
padding: 0.75rem 1rem;
border-radius: var(--radius);
font-size: 0.95rem;
}
.alert-success {
background: rgba(72, 187, 120, 0.15);
border: 1px solid rgba(72, 187, 120, 0.35);
color: #9ae6b4;
}
.alert-error {
background: rgba(245, 101, 101, 0.12);
border: 1px solid rgba(245, 101, 101, 0.35);
color: #feb2b2;
}
.auth-section {
padding: 3rem 0 5rem;
}
.auth-container {
display: flex;
justify-content: center;
}
.auth-card {
width: min(420px, 100%);
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 2rem;
}
.auth-title {
font-family: var(--font-display);
font-size: 2rem;
font-weight: 400;
margin: 0 0 0.35rem;
}
.auth-sub {
color: var(--text-muted);
margin: 0 0 1.5rem;
}
.auth-form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.form-field {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.form-field span {
font-size: 0.85rem;
color: var(--text-muted);
}
.form-field input {
padding: 0.65rem 0.85rem;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
font-family: inherit;
font-size: 1rem;
}
.form-field input:focus {
outline: none;
border-color: var(--accent);
}
.form-field input:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btn-block {
width: 100%;
margin-top: 0.5rem;
}
.auth-footer {
margin: 1.25rem 0 0;
text-align: center;
color: var(--text-muted);
font-size: 0.95rem;
}
.auth-footer a {
color: var(--accent);
}
.auth-footer a:hover {
color: var(--accent-hover);
}
/* Account */
.account-section {
padding: 2.5rem 0 4rem;
}
.account-grid {
display: grid;
grid-template-columns: 260px 1fr;
gap: 2rem;
margin-top: 1.5rem;
}
.account-user-card {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.25rem;
}
.account-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--accent);
margin: 0 0 0.5rem;
}
.account-name {
font-size: 1.25rem;
font-weight: 600;
margin: 0 0 0.25rem;
}
.account-email {
color: var(--text-muted);
font-size: 0.9rem;
margin: 0 0 0.75rem;
word-break: break-all;
}
.account-meta {
font-size: 0.82rem;
color: var(--text-muted);
margin: 0;
}
.account-nav {
display: flex;
flex-direction: column;
gap: 0.35rem;
margin-top: 1rem;
}
.account-nav-item {
display: block;
padding: 0.55rem 0.85rem;
border-radius: 8px;
font-size: 0.95rem;
color: var(--text-muted);
}
.account-nav-item.active {
background: var(--surface);
color: var(--text);
}
.account-nav-item:hover:not(.active) {
background: rgba(255, 255, 255, 0.04);
color: var(--text);
}
.account-main {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.account-card h2 {
margin: 0 0 1rem;
font-size: 1.15rem;
}
.account-hint h3 {
margin: 0 0 0.5rem;
}
.text-muted {
color: var(--text-muted);
font-size: 0.95rem;
}