UF_clean / frontend /css /auth.css
Subh775's picture
button and pfp big
4c81163
/* ============================================
UrbanFlow — auth.css
Styles for auth overlay, onboarding, profile,
and logout confirmation. Matches the existing
design system (dark theme, #c89a6c accent).
============================================ */
/* ---- Auth Overlay (fullscreen backdrop) ---- */
.auth-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.88);
z-index: 10000;
align-items: center;
justify-content: center;
padding: 24px;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.auth-card {
background: #0a0a0a;
border: 1px solid #2a2a2a;
border-radius: 18px;
max-width: 400px;
width: 100%;
padding: 40px 32px;
text-align: center;
animation: authFadeIn 0.3s ease;
}
@keyframes authFadeIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
.auth-card-header {
margin-bottom: 28px;
}
.auth-title {
color: #f0ece6;
font-size: 1.4rem;
font-weight: 800;
font-family: 'Montserrat', sans-serif;
margin: 0 0 6px;
}
.auth-subtitle {
color: #777;
font-size: 12px;
font-weight: 500;
margin: 0;
line-height: 1.6;
}
.auth-google-btn {
display: flex;
justify-content: center;
margin: 24px 0 16px;
}
.auth-error {
color: #ef4444;
font-size: 11px;
font-weight: 600;
margin-top: 12px;
}
.auth-footer {
color: #555;
font-size: 10px;
margin-top: 20px;
}
.auth-link {
color: #c89a6c;
background: none;
border: none;
font-weight: 700;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 3px;
font-size: inherit;
padding: 0;
}
.auth-link:hover {
color: #f0ece6;
}
/* ---- Onboarding Form ---- */
.auth-avatar {
width: 56px;
height: 56px;
border-radius: 50%;
margin: 0 auto 16px;
border: 2px solid #2a2a2a;
display: block;
}
.auth-label {
display: block;
text-align: left;
color: #a89f97;
font-size: 10px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 8px;
}
.auth-input {
width: 100%;
background: #111;
border: 1px solid #2a2a2a;
border-radius: 10px;
padding: 12px 16px;
color: #f0ece6;
font-family: 'Montserrat', sans-serif;
font-size: 14px;
font-weight: 600;
outline: none;
transition: border-color 0.2s;
box-sizing: border-box;
}
.auth-input:focus {
border-color: #c89a6c;
}
.auth-input::placeholder {
color: #555;
font-weight: 400;
}
.auth-onboard-form {
text-align: left;
}
.auth-submit-btn {
width: 100%;
margin-top: 18px;
padding: 12px 24px;
background: #c89a6c;
color: #000;
border: none;
border-radius: 10px;
font-family: 'Montserrat', sans-serif;
font-size: 13px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
cursor: pointer;
transition: opacity 0.2s, transform 0.1s;
}
.auth-submit-btn:hover {
opacity: 0.9;
}
.auth-submit-btn:active {
transform: scale(0.97);
}
.auth-submit-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.auth-cancel-btn {
padding: 10px 24px;
background: transparent;
color: #a89f97;
border: 1px solid #2a2a2a;
border-radius: 10px;
font-family: 'Montserrat', sans-serif;
font-size: 12px;
font-weight: 700;
cursor: pointer;
transition: border-color 0.2s, color 0.2s;
}
.auth-cancel-btn:hover {
border-color: #555;
color: #f0ece6;
}
/* ---- Profile Section (Desktop Sidebar) ---- */
.sidebar-profile {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border-bottom: 1px solid #1a1a1a;
margin-bottom: 8px;
}
.sidebar-profile-pic {
width: 32px;
height: 32px;
border-radius: 50%;
border: 1.5px solid #2a2a2a;
flex-shrink: 0;
object-fit: cover;
}
.sidebar-profile-info {
flex: 1;
min-width: 0;
}
.sidebar-profile-name {
color: #f0ece6;
font-size: 12px;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-profile-email {
color: #666;
font-size: 9px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-signout-btn {
background: none;
border: none;
color: #555;
font-size: 14px;
cursor: pointer;
padding: 4px;
flex-shrink: 0;
transition: color 0.2s;
}
.sidebar-signout-btn:hover {
color: #ef4444;
}
/* ---- Profile in Mobile Three-Dot Menu ---- */
.mobile-profile-row {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
border-bottom: 1px solid #1a1a1a;
}
.mobile-profile-pic {
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid #2a2a2a;
flex-shrink: 0;
object-fit: cover;
}
.mobile-profile-name {
color: #f0ece6;
font-size: 11px;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
.mobile-signout-btn {
width: 100%;
text-align: left;
padding: 10px 16px;
color: #ef4444;
font-size: 10px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
background: none;
border: none;
border-top: 1px solid #1a1a1a;
cursor: pointer;
transition: background 0.2s;
}
.mobile-signout-btn:hover {
background: #111;
}
/* ---- Utility ---- */
.hidden { display: none !important; }