/* 로그인 화면 - 1열 브랜딩 / 2열 로그인폼 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: 271 82% 35%;
    --primary-foreground: 270 100% 97%;
    --foreground: 240 10% 3.9%;
    --background: 0 0% 100%;
    --card: 0 0% 100%;
    --border: 240 5.9% 90%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --ring: 271 82% 35%;
    --gradient-from: 271 82% 35%;
    --gradient-to: 271 65% 45%;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

body {
    font-family: 'Inter', 'Pretendard', system-ui, -apple-system, 'Malgun Gothic', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: hsl(var(--foreground));
}

.auth-layout { display: flex; min-height: 100vh; }

/* 1열: 브랜딩 */
.auth-brand-panel {
    flex: 1;
    background: linear-gradient(135deg, hsl(var(--gradient-from)), hsl(var(--gradient-to)));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem; color: #fff; position: relative; overflow: hidden;
}
.auth-brand-panel::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, hsl(340 70% 60% / 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, hsl(350 76% 70% / 0.2) 0%, transparent 50%);
}
.auth-brand-logo {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.auth-brand-logo svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15)); }
.auth-brand-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.auth-brand-subtitle { font-size: 0.8125rem; opacity: 0.75; margin-top: 0.25rem; letter-spacing: 0.02em; }
.auth-brand-tagline { position: relative; z-index: 1; font-size: 1rem; opacity: 0.85; }
.auth-brand-points {
    position: relative; z-index: 1; margin-top: 2rem;
    display: flex; flex-direction: column; gap: 0.625rem;
    font-size: 0.875rem; opacity: 0.8;
}
.auth-brand-points span { display: flex; align-items: center; gap: 0.5rem; }

/* 2열: 로그인폼 */
.auth-form-panel {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 2rem; background: hsl(var(--background));
}
.auth-card { width: 100%; max-width: 420px; }
.auth-logo-circle {
    display: none; align-items: center; justify-content: center;
    width: 4rem; height: 4rem; margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, hsl(var(--gradient-from) / 0.1), hsl(var(--gradient-to) / 0.1));
    border-radius: var(--radius-full);
}
.auth-badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    margin: 0 auto 0.875rem; padding: 0.25rem 0.75rem;
    background: hsl(var(--primary) / 0.08); color: hsl(var(--primary));
    border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.04em;
}
.auth-badge-wrap { display: flex; }
.auth-title {
    font-size: 1.5rem; font-weight: 800; text-align: center;
    margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.auth-subtitle {
    font-size: 0.875rem; text-align: center;
    color: hsl(var(--muted-foreground)); margin-bottom: 2rem; line-height: 1.5;
}
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.input-icon-wrap { position: relative; }
.input-icon {
    position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%);
    color: hsl(var(--muted-foreground)); pointer-events: none; z-index: 1;
    display: flex; align-items: center;
}
.form-input {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg);
    font-size: 0.9375rem; font-family: inherit; min-height: 2.75rem;
    color: hsl(var(--foreground)); background: hsl(var(--card));
    outline: none; transition: all 0.15s ease;
}
.form-input:focus { border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1); }
.form-input::placeholder { color: hsl(var(--muted-foreground)); }
.input-with-icon { padding-left: 2.75rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border: none; border-radius: var(--radius-lg);
    font-size: 0.9375rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.15s ease; min-height: 2.75rem;
}
.btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); width: 100%; }
.btn--primary:hover { opacity: 0.92; box-shadow: 0 2px 8px hsl(var(--primary) / 0.3); }
.auth-error {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem; background: hsl(0 86% 97%);
    border: 1px solid hsl(0 84% 90%); color: hsl(0 84% 40%);
    border-radius: var(--radius-lg); font-size: 0.875rem; margin-bottom: 1rem;
}
.auth-error svg { flex-shrink: 0; }
.auth-footer {
    text-align: center; margin-top: 1.5rem;
    font-size: 0.8125rem; color: hsl(var(--muted-foreground)); line-height: 1.7;
}
.auth-link { color: hsl(var(--primary)); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .auth-brand-panel { display: none; }
    .auth-form-panel { padding: 1.5rem 1rem; }
    .auth-logo-circle { display: flex; }
    .auth-title { font-size: 1.25rem; }
}
