﻿/* =========================================================
   모아(moa) — 로그인 A
   핸드오프: C:\ProJect\moa\design\README.md (High-fidelity, 값 고정)
   디자인 토큰
     Cobalt (Primary)  #3754DB
     Cobalt Hover      #2A45C2
     Cobalt Dark       #2438A8
     Cobalt Darkest    #1A2880
     Mist              #9FB4FF
     Ink               #0E1525
     Slate             #56607A
     Muted             #8A93AB
     Field Border      #E1E6F0
     Field BG          #F7F9FC
     Error             #E0568A
   ========================================================= */

* { box-sizing: border-box; }

html, body, form {
    margin: 0;
    padding: 0;
}

body {
    background: #EEF1F6;
    color: #0E1525;
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.014em;
}

input:focus { outline: none; }

/* ---------- 전체 레이아웃 (데스크톱 전용 — 반응형은 이번 범위 밖) ---------- */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

/* ---------- 좌측 브랜드 패널 ---------- */
.brand-panel {
    background: radial-gradient(120% 120% at 0% 0%, #3754DB 0%, #2438A8 60%, #1A2880 100%);
    color: #fff;
    padding: 60px 72px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.logo-mark {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 36px;
}

.logo-mark-front {
    position: absolute;
    left: 0;
    top: 6px;
    width: 23px;
    height: 23px;
    background: #9FB4FF;
    border-radius: 50% 50% 50% 5px;
}

.logo-mark-back {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 23px;
    height: 23px;
    background: #fff;
    border-radius: 50% 50% 50% 5px;
}

.logo-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.brand-copy {
    position: relative;
    z-index: 2;
}

.brand-overline {
    font-size: 13px;
    letter-spacing: 0.18em;
    color: #B9C6FF;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-headline {
    font-weight: 800;
    font-size: 44px;
    line-height: 1.18;
    margin: 18px 0 0;
    letter-spacing: -0.03em;
}

.brand-subcopy {
    color: #C3CDF5;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 22px;
    max-width: 380px;
}

.brand-partner {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    z-index: 2;
    margin-top: 2px;
}

.partner-logo {
    height: 38px;
    width: auto;
    align-self: flex-start;
    opacity: 0.92;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
}

.deco-circle-1 {
    right: -120px;
    top: -80px;
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, 0.07);
}

.deco-circle-2 {
    right: 40px;
    bottom: -100px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- 우측 로그인 폼 ---------- */
.form-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.form-box {
    width: 100%;
    max-width: 380px;
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.form-subtext {
    color: #8A93AB;
    font-size: 14px;
    margin: 10px 0 30px;
}

.field-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #56607A;
    display: block;
    margin-bottom: 8px;
}

.field {
    width: 100%;
    height: 48px;
    border: 1.5px solid #E1E6F0;
    border-radius: 13px;
    padding: 0 14px;
    font-size: 14px;
    background: #F7F9FC;
    font-family: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.field:focus {
    border-color: #3754DB;
    background: #fff;
}

.field-email { margin-bottom: 16px; }
.field-password { margin-bottom: 14px; }

/* 에러 상태 — 레퍼런스에 없어 핸드오프 권고(#E0568A 계열)에 따라 신규 정의 */
.field-invalid,
.field-invalid:focus {
    border-color: #E0568A;
}

.form-error {
    color: #E0568A;
    font-size: 13px;
    line-height: 1.5;
    margin: -4px 0 14px;
}

.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #8A93AB;
    margin-bottom: 24px;
}

.keep-login {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.keep-login-check {
    accent-color: #3754DB;
    width: 15px;
    height: 15px;
    margin: 0;
}

.find-link {
    cursor: pointer;
    color: #3754DB;
    font-weight: 600;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    height: 52px;
    background: #3754DB;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(55, 84, 219, 0.28);
    font-family: inherit;
    letter-spacing: inherit;
}

.btn-login:hover {
    background: #2A45C2;
}
