Account login

This commit is contained in:
augmentedpotato
2026-03-29 17:43:31 -06:00
parent 1c0f55fbe5
commit c048c4bdc3
9 changed files with 708 additions and 30 deletions

View File

@@ -773,3 +773,250 @@ body {
margin: 0;
line-height: 1.5;
}
/* Auth/nav */
.navbar {
justify-content: space-between;
}
.nav-auth {
display: flex;
align-items: center;
gap: 0.5rem;
margin-left: auto;
padding-left: 1.5rem;
flex-shrink: 0;
}
.nav-greeting {
font-weight: 600;
white-space: nowrap;
}
.nav-register-btn {
background: white;
color: orange !important;
font-weight: 600;
border-radius: 20px;
padding: 0.4rem 1rem !important;
}
.nav-register-btn:hover {
background: #fff3e0 !important;
}
.nav-logout-btn {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 1px solid rgba(255, 255, 255, 0.6);
border-radius: 20px;
padding: 0.35rem 1rem;
font-size: 0.95rem;
cursor: pointer;
transition: background 0.2s ease;
white-space: nowrap;
}
.nav-logout-btn:hover {
background: rgba(255, 255, 255, 0.35);
}
/* Login/Register */
.auth-page {
min-height: calc(100vh - 70px);
display: flex;
align-items: center;
justify-content: center;
padding: 2rem 1rem;
background: #fafafa;
}
.auth-card {
background: white;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
padding: 2.5rem;
width: 100%;
max-width: 440px;
}
.auth-title {
font-size: 1.75rem;
font-weight: 700;
color: #222;
margin: 0 0 1.5rem;
text-align: center;
}
.auth-form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.auth-label {
display: flex;
flex-direction: column;
gap: 0.35rem;
font-size: 0.9rem;
font-weight: 600;
color: #444;
}
.auth-input {
padding: 0.6rem 0.85rem;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
outline: none;
}
.auth-input:focus {
border-color: orange;
box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
}
.auth-submit-btn {
margin-top: 0.5rem;
padding: 0.75rem;
background: orange;
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
transition: background 0.2s ease, transform 0.1s ease;
}
.auth-submit-btn:hover:not(:disabled) {
background: #e69500;
}
.auth-submit-btn:active:not(:disabled) {
transform: scale(0.98);
}
.auth-submit-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.auth-error {
background: #fff0f0;
border: 1px solid #f5c6c6;
color: #c0392b;
border-radius: 8px;
padding: 0.65rem 1rem;
font-size: 0.9rem;
margin-bottom: 0.5rem;
}
.auth-switch {
text-align: center;
font-size: 0.9rem;
color: #666;
margin-top: 1.25rem;
}
.auth-switch-link {
color: orange;
font-weight: 600;
text-decoration: none;
}
.auth-switch-link:hover {
text-decoration: underline;
}
/* User Profile Page */
.profile-card {
background: white;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
padding: 2.5rem;
width: 100%;
max-width: 480px;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
}
.profile-avatar-circle {
width: 80px;
height: 80px;
border-radius: 50%;
background: orange;
color: white;
font-size: 2rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.25rem;
}
.profile-name {
font-size: 1.5rem;
font-weight: 700;
color: #222;
margin: 0;
}
.profile-role-badge {
display: inline-block;
background: #fff3e0;
color: #e67e00;
border: 1px solid #ffd180;
border-radius: 20px;
padding: 0.2rem 0.85rem;
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.profile-fields {
width: 100%;
margin: 0.75rem 0 0;
border-top: 1px solid #eee;
padding-top: 1rem;
}
.profile-field-row {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 0.55rem 0;
border-bottom: 1px solid #f0f0f0;
gap: 1rem;
}
.profile-field-label {
font-size: 0.85rem;
font-weight: 600;
color: #888;
flex-shrink: 0;
}
.profile-field-value {
font-size: 0.95rem;
color: #222;
text-align: right;
word-break: break-word;
}
.profile-logout-btn {
width: 100%;
margin-top: 1rem;
}
.profile-loading {
color: #888;
font-size: 1rem;
}