﻿/* =============================================================
   그루터기 — 로그인 페이지 스타일 (login.css)
   ============================================================= */
:root {
  --green:      #5B6B5E;
  --green-deep: #3F4A41;
  --green-soft: #EAEDE8;
  --sage:       #9AA89C;
  --gold:       #C2A36B;
  --zblue:      #0089CF;
  --paper:      #FBFAF7;
  --bg:         #ECEAE3;
  --ink:        #2C322E;
  --ink-soft:   #5C645D;
  --ink-faint:  #8A9089;
  --line:       #E3E1D8;
  --brand-grad: linear-gradient(165deg, #4B574C, #363F38);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding: 24px;
}

/* ── Shell: 2-column card ─────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 940px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(44, 50, 46, .18),
    0  4px 16px rgba(44, 50, 46, .10);
}

/* ── Left: Brand panel ────────────────────────────────────── */
.brand-panel {
  background: var(--brand-grad);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

/* Brand mark (symbol + wordmark) */
.brand-top { flex: 0 0 auto; }

.brand-mark {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-wordmark {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 30px;
  color: #ffffff;
  letter-spacing: -.4px;
  line-height: 1.2;
}

.brand-wordmark span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .6);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Brand mid section */
.brand-mid {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 0 36px;
}

.brand-quote {
  font-family: 'Gowun Batang', serif;
  font-size: 20px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.6;
  margin-bottom: 22px;
  font-style: normal;
  position: relative;
  padding-left: 20px;
}

.brand-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  font-family: Georgia, serif;
}

.brand-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .54);
  line-height: 1.95;
}

/* Brand footer (zsoft logo) */
.brand-foot { flex: 0 0 auto; }

.zsoft-logo {
  height: 38px;
  filter: brightness(0) invert(1);
  opacity: .65;
}

/* ── Right: Form panel ────────────────────────────────────── */
.form-panel {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 52px;
}

.form-inner {
  width: 100%;
  max-width: 330px;
}

.form-title {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--green-deep);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 36px;
}

/* ── Fields ─────────────────────────────────────────────── */
.field { margin-bottom: 18px; }

.field > label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 7px;
  letter-spacing: .02em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sage);
  pointer-events: none;
  display: flex;
  align-items: center;
  line-height: 0;
}

.inp {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}

.inp:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(91, 107, 94, .13);
}

.inp::-webkit-input-placeholder { color: var(--ink-faint); }
.inp:-ms-input-placeholder      { color: var(--ink-faint); }
.inp::placeholder                { color: var(--ink-faint); }

/* ── Checkbox row ────────────────────────────────────────── */
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 28px;
}

.chk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.chk-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.find-pw {
  font-size: 12.5px;
  color: var(--sage);
  text-decoration: none;
  transition: color .15s;
}
.find-pw:hover { color: var(--green); text-decoration: underline; }

/* ── Login button ────────────────────────────────────────── */
.btn-login {
  display: block;
  width: 100%;
  height: 50px;
  background: var(--green);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-bottom: 26px;
}
.btn-login:hover  { background: var(--green-deep); }
.btn-login:active { transform: scale(.98); }

/* ── Error message ───────────────────────────────────────── */
.error-msg {
  display: block;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 9px;
  color: #B91C1C;
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 20px;
  line-height: 1.55;
}

/* ── Contact note ────────────────────────────────────────── */
.contact-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.9;
}
.contact-note a {
  color: var(--zblue);
  text-decoration: none;
}
.contact-note a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .brand-panel { display: none; }
  .shell {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .form-panel { padding: 44px 28px; }
  .form-inner { max-width: 100%; }
}