/* 공통 색상: 회사의 빨간색과 차분한 회색 계열을 정의합니다. */
:root { color-scheme: light; --red:#e60012; --ink:#20252a; --muted:#636c75; }
/* 작은 화면에서도 입력창이 영역 밖으로 넘치지 않도록 계산합니다. */
* { box-sizing:border-box; }
/* 로그인과 회원가입을 화면 중앙에 배치합니다. */
body { margin:0; min-height:100vh; min-height:100svh; display:grid; place-items:center; padding:32px 18px; background:#f5f5f4; color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif; }
main { width:100%; max-width:420px; }
/* 로고와 회사 이름: 별도의 기능 소개 문구 없이 표시합니다. */
.brand { text-align:center; margin-bottom:30px; }
.logo { display:block; width:112px; height:auto; margin:0 auto 16px; }
/* 워드마크는 화면 폭에 맞춰 크기를 조절하고 한 줄로 유지합니다. */
.brand-name { margin:0; font-size:clamp(20px, 6vw, 26px); font-weight:750; letter-spacing:-.7px; line-height:1.25; white-space:nowrap; }
/* 두 단어의 색상과 간격을 독립적으로 조정합니다. */
.brand-red { color:var(--red); }
.brand-black { color:#181818; margin-left:3px; }
/* 폼 카드: 로그인과 회원가입 화면에서 공통으로 사용합니다. */
.card { padding:30px; background:white; border:1px solid #e4e5e6; border-radius:14px; box-shadow:0 8px 28px #20252a06; }
h1 { margin:0 0 26px; font-size:22px; }
.field { margin-bottom:18px; }
label { display:block; margin-bottom:8px; font-size:14px; font-weight:600; }
input { width:100%; min-height:48px; padding:12px; border:1px solid #cdd1d5; border-radius:7px; font:inherit; font-size:16px; color:var(--ink); background:white; }
/* 키보드로 이동할 때 현재 입력창과 링크가 분명하게 보이도록 합니다. */
input:focus { outline:3px solid #f5d4d7; border-color:var(--red); }
a:focus-visible,button:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
button { width:100%; min-height:48px; border:0; border-radius:7px; background:var(--red); color:white; font:inherit; font-weight:700; cursor:pointer; }
button:hover { background:#a91c29; }
/* 작은 안내문과 로그인/회원가입 전환 링크입니다. */
.hint { margin:7px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.help { margin:22px 0 0; text-align:center; color:var(--muted); font-size:13px; }
a { color:var(--red); text-underline-offset:3px; }
.help a { margin-left:6px; font-weight:700; }
/* 입력 오류, 가입 완료, 서버 연결 실패를 같은 위치에서 안내합니다. */
.notice { padding:12px; margin:0 0 20px; border:1px solid #ecc1c6; border-radius:7px; background:#fff1f2; color:#981d28; font-size:14px; line-height:1.6; }
.success { border-color:#b8dac7; background:#edf8f1; color:#25643d; }
footer { margin-top:24px; text-align:center; color:var(--muted); font-size:12px; }
/* 로그인 후 기본 화면: 실제 기록 기능은 다음 단계에서 추가합니다. */
.welcome { line-height:1.7; margin:0 0 24px; }
/* 작은 휴대폰에서 카드 내부 여백을 줄입니다. */
@media(max-width:380px) { .card { padding:24px; } }

/* 로고와 회사 이름 전체를 하나의 홈 링크로 묶습니다. */
.brand-home { display:block; text-decoration:none; color:inherit; }
