Files
uniare.sori.studio/style/auth-pages.css
zenn dbf02241e2 v4.0.0: 회원·덱 API, 인증 UI, 프로필 및 레이아웃 통일
Express/SQLite API와 Docker 구성을 추가하고 로그인·덱 저장·공개 덱·관리자·프로필 화면을 구현했다. 결과 화면 저장 UX, 헤더 프로필, 애드센스용 app-shell 레이아웃(1280px) 및 문서를 반영했다.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-22 16:59:36 +09:00

188 lines
3.2 KiB
CSS

/**
* 인증·계정 페이지 공통 레이아웃
* (Tailwind 빌드에 없는 max-w-* 유틸 대체)
*/
.auth-page {
font-family: 'Inter', 'Noto Sans KR', sans-serif;
min-height: 100vh;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
color: #0f172a;
}
.auth-nav {
position: sticky;
top: 0;
z-index: 50;
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(12px);
border-bottom: 1px solid #e2e8f0;
}
.auth-nav-inner {
max-width: 80rem;
margin: 0 auto;
padding: 0 1.5rem;
height: 4rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.auth-brand {
display: flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
color: #1e293b;
}
.auth-brand img {
width: 2rem;
height: 2rem;
object-fit: contain;
}
.auth-brand-text {
font-size: 1.25rem;
font-weight: 800;
letter-spacing: -0.025em;
}
.auth-brand-text span {
color: #2563eb;
}
.auth-main {
max-width: 28rem;
margin: 0 auto;
padding: 3rem 1.5rem 4rem;
}
@media (min-width: 640px) {
.auth-main {
padding-top: 4rem;
padding-bottom: 5rem;
}
}
.auth-header {
text-align: center;
margin-bottom: 2rem;
}
.auth-header h1 {
font-size: 1.75rem;
font-weight: 900;
color: #0f172a;
margin: 0 0 0.5rem;
letter-spacing: -0.02em;
}
.auth-header p {
font-size: 0.875rem;
color: #64748b;
margin: 0;
line-height: 1.5;
}
.auth-card {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 1rem;
padding: 1.75rem;
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.auth-field {
margin-bottom: 1.25rem;
}
.auth-field:last-of-type {
margin-bottom: 0;
}
.auth-label {
display: block;
font-size: 0.6875rem;
font-weight: 700;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.375rem;
}
.auth-input {
display: block;
width: 100%;
max-width: 100%;
box-sizing: border-box;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
padding: 0.75rem 1rem;
font-size: 0.875rem;
color: #0f172a;
background: #fff;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.auth-input::placeholder {
color: #cbd5e1;
}
.auth-error {
margin-top: 1rem;
font-size: 0.8125rem;
color: #ef4444;
}
.auth-error.hidden {
display: none;
}
.auth-submit {
display: block;
width: 100%;
margin-top: 1.5rem;
padding: 0.875rem 1rem;
border: none;
border-radius: 0.75rem;
background: #2563eb;
color: #fff;
font-size: 0.875rem;
font-weight: 700;
cursor: pointer;
transition: background 0.2s, transform 0.1s;
}
.auth-submit:hover {
background: #1d4ed8;
}
.auth-submit:active {
transform: scale(0.98);
}
.auth-footer {
margin-top: 1.5rem;
text-align: center;
font-size: 0.875rem;
color: #64748b;
}
.auth-footer a {
color: #2563eb;
font-weight: 700;
text-decoration: none;
}
.auth-footer a:hover {
text-decoration: underline;
}