html.login-document, body.login-body { height: 100%; margin: 0; overflow: hidden; }
.login-body { color: #243c37; background: #eef1ed; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif; }
.login-page, .login-page * { box-sizing: border-box; }
.login-page { height: 100vh; height: 100dvh; padding: clamp(12px, 3vw, 40px); display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 10% 15%, #dfe8df, transparent 55%); }
.login-shell { display: grid; grid-template-columns: 44% minmax(0, 1fr); width: 980px; max-width: 100%; height: 670px; max-height: 100%; min-height: 0; overflow: hidden; border: 1px solid #fff; border-radius: 28px; background: #fff; box-shadow: 0 24px 80px #244c3d12; }
.login-welcome { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 38px; color: #fff; background: #193f36; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-logo { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; background: #fff; border-radius: 14px; }
.login-logo img { width: 34px; height: 34px; object-fit: contain; }
.login-brand small, .login-brand strong { display: block; }
.login-brand small { color: #d3e2dc; font-size: 10px; letter-spacing: .06em; margin-bottom: 2px; }
.login-brand strong { font-size: 21px; letter-spacing: .05em; }
.login-welcome-copy { margin-top: 68px; z-index: 1; }
.login-eyebrow { font-size: 10px; letter-spacing: .17em; font-weight: 700; color: #58776b; }
.login-welcome .login-eyebrow { color: #a7c7b7; }
.login-welcome h2 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.5; letter-spacing: -.06em; font-weight: 700; margin: 16px 0; }
.login-welcome-copy p { font-size: 13px; line-height: 1.9; color: #c0d5cb; }
.login-welcome-note { margin: auto 0 0; padding-top: 20px; font-size: 11px; color: #b4ccc1; z-index: 1; }
.login-arch { position: absolute; z-index: -1; width: 250px; height: 310px; border-radius: 150px 150px 0 0; bottom: -25px; right: -20px; border: 1px solid #8aab963b; background: linear-gradient(140deg, #bfd3bc1f, transparent); box-shadow: 0 0 0 24px #9cb99a06, 0 0 0 48px #9cb99a06; }
.login-arch span { position: absolute; width: 2px; height: 96px; background: #c9d7b958; left: 50%; top: 78px; }
.login-arch span::after { content: ""; position: absolute; width: 56px; height: 2px; background: inherit; top: 28px; left: -27px; }
.login-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 40px 54px; scrollbar-width: thin; scrollbar-color: #c5d5cc transparent; }
.login-card { flex-shrink: 0; width: 100%; max-width: 390px; margin: auto; }
.login-heading { margin-bottom: 30px; }
.login-heading h1 { font-size: 30px; font-weight: 750; letter-spacing: -.05em; margin: 10px 0; }
.login-heading p { color: #77847f; font-size: 13px; line-height: 1.65; margin: 0; }
.login-field { min-width: 0; margin-bottom: 18px; }
.login-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.login-field input { width: 100%; height: 48px; min-width: 0; border: 1px solid #dfe6e1; border-radius: 10px; background: #fafcf9; color: #233d34; font-size: 16px; padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
.login-field input::placeholder { color: #909d94; font-size: 12px; }
.login-field input:focus { outline: none; background: #fff; border-color: #50836d; box-shadow: 0 0 0 3px #50836d1a; }
.login-field input[aria-invalid="true"] { border-color: #ba5650; }
.login-field-error { display: block; color: #ae443c; font-size: 11px; line-height: 1.5; margin-top: 5px; }
.login-field-error:empty { display: none; }
.login-password { position: relative; }
.login-password input { padding-right: 56px; }
.login-password button { position: absolute; right: 4px; top: 4px; height: 40px; min-width: 44px; border: 0; border-radius: 7px; background: transparent; color: #507460; font-size: 11px; font-weight: 600; }
.login-password button:hover { background: #eaf0e9; }
.login-submit { width: 100%; min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; border: 0; border-radius: 11px; background: #254e40; color: #fff; font-size: 14px; font-weight: 650; transition: background .15s; }
.login-submit:hover { background: #173d30; }
.login-submit:disabled { opacity: .65; cursor: wait; }
.login-signup { text-align: center; font-size: 12px; color: #818d85; margin: 18px 0 0; }
.login-signup a { color: #315f49; font-weight: 700; margin-left: 8px; text-underline-offset: 4px; }
.login-message { font-size: 12px; color: #ae443c; margin: 0; overflow-wrap: anywhere; }
.login-divider { display: flex; align-items: center; gap: 12px; color: #87948a; font-size: 11px; margin: 30px 0 18px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: #e7ede7; }
.login-social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.login-social-links a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 600; color: #292b26; transition: filter .15s; }
.login-social-links a:hover { filter: brightness(.96); }
.login-social-links img { width: 17px; height: 17px; object-fit: contain; flex-shrink: 0; }
.login-kakao { background: #fee500; border: 1px solid #fee500; }
.login-google { background: #fff; border: 1px solid #dfe6e1; }
.login-page button:focus-visible, .login-page a:focus-visible { outline: 3px solid #87ad93; outline-offset: 3px; }
@media (max-width: 850px) {
    .login-welcome { padding: 28px; }
    .login-panel { padding: 30px; }
}
@media (max-width: 680px) {
    .login-page { padding: 12px; }
    .login-shell { display: flex; flex-direction: column; width: 460px; height: 670px; border-radius: 20px; }
    .login-welcome { flex: 0 0 auto; padding: 16px 22px; }
    .login-brand { gap: 10px; }
    .login-logo { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
    .login-logo img { width: 28px; height: 28px; }
    .login-brand small { font-size: 9px; }
    .login-brand strong { font-size: 17px; }
    .login-welcome-copy, .login-welcome-note, .login-arch { display: none; }
    .login-panel { flex: 1; padding: 26px 22px; }
    .login-heading h1 { font-size: 27px; }
}
@media (max-height: 700px) {
    .login-panel { padding-top: 22px; padding-bottom: 22px; }
    .login-heading { margin-bottom: 20px; }
    .login-field { margin-bottom: 14px; }
    .login-submit { margin-top: 18px; }
    .login-divider { margin: 20px 0 14px; }
    .login-signup { margin-top: 14px; }
}
@media (max-height: 590px) {
    .login-page { padding: 8px; }
    .login-welcome { padding: 12px 22px; }
    .login-panel { padding-top: 16px; padding-bottom: 16px; }
    .login-heading { margin-bottom: 16px; }
    .login-heading h1 { margin: 6px 0; }
    .login-field label { margin-bottom: 6px; }
    .login-field input { height: 44px; }
    .login-password button { top: 2px; }
    .login-submit { margin-top: 14px; min-height: 44px; }
    .login-divider { margin: 16px 0 12px; }
    .login-welcome-copy { margin-top: 24px; }
}
@media (min-width: 540px) and (max-height: 500px) {
    .login-shell { display: block; width: 820px; }
    .login-welcome { display: none; }
    .login-panel { height: 100%; padding: 18px 26px; }
    .login-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 28px; max-width: none; }
    .login-heading { grid-column: 2; grid-row: 1; margin-bottom: 0; align-self: end; }
    #loginForm { grid-column: 1; grid-row: 1 / 4; }
    .login-social { grid-column: 2; grid-row: 2; align-self: center; }
    .login-signup { grid-column: 2; grid-row: 3; margin-top: 12px; }
    .login-heading h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .login-page * { transition: none !important; } }
