/* ===========================
   Cropick — login.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&family=Nunito:wght@700;800;900&display=swap');

:root {
  --primary:       #3A9E2F;
  --primary-light: #5BBD50;
  --primary-dark:  #2D7D24;
  --brown:         #3D2B1F;
  --text-dark:     #1A1A1A;
  --text-mid:      #444;
  --text-light:    #888;
  --border:        #E8E8E8;
  --bg:            #FFFFFF;
  --bg-soft:       #F6FAF5;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --nav-h:         100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-dark);
  background: #F2F4F6;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  overflow: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── NAVBAR ── */
.navbar { position: sticky; top: 0; z-index: 1000; height: var(--nav-h); background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 40px; }
.navbar__logo { display: flex; align-items: center; gap: 10px; margin-right: 48px; flex-shrink: 0; }
.navbar__logo img { height: 40px; width: auto; object-fit: contain; }
.navbar__nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.navbar__nav a { font-size: 20px; font-weight: 500; color: #777; padding: 7px 16px; border-radius: 8px; letter-spacing: -0.2px; transition: color .2s, background .2s; position: relative; }
.navbar__nav a:hover { color: var(--text-dark); background: var(--bg-soft); }
.navbar__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.navbar__actions .link-sm { font-size: 13px; font-weight: 500; color: #888; padding: 6px 10px; border-radius: 6px; letter-spacing: -0.1px; transition: color .2s, background .2s; }
.navbar__actions .link-sm:hover { color: var(--text-dark); background: var(--bg-soft); }
.navbar__actions .active-link { color: var(--primary); font-weight: 700; }
.navbar__icon-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; color: #888; cursor: pointer; transition: background .2s, color .2s; border: 1.5px solid var(--border); }
.navbar__icon-btn:hover { background: var(--bg-soft); color: var(--text-dark); border-color: #ccc; }

/* ── 로그인 메인 ── */
.login-main {
  height: calc(100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── 로그인 카드 ── */
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 52px 52px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

/* ── 로고 ── */
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.login-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ── 탭 ── */
.login-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 32px;
}
.login-tab {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-light);
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.login-tab:hover { color: var(--text-dark); }
.login-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* ── 패널 ── */
.login-panel { display: none; }
.login-panel.active { display: flex; flex-direction: column; gap: 18px; }

/* ── 폼 ── */
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.form-row input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.form-row input:focus { border-color: var(--primary); }

/* ── 옵션 행 ── */
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
  user-select: none;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.find-link {
  font-size: 13px;
  color: var(--text-light);
  transition: color .2s;
}
.find-link:hover { color: var(--primary); }

/* ── 로그인 버튼 ── */
.btn-login {
  width: 100%;
  padding: 16px;
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 4px;
}
.btn-login:hover { background: #2a1d14; }

/* ── 에러 메시지 ── */
.login-error {
  font-size: 13px;
  color: #e74c3c;
  text-align: center;
  margin-top: -6px;
}

/* ── 구분선 ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 13px;
  margin: 4px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── 네이버 버튼 ── */
.btn-naver {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: #03C75A;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn-naver:hover { background: #02b350; }

/* ── 안내 문구 ── */
.login-notice {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.8;
  margin-top: 4px;
}

/* ── 회원가입 안내 박스 ── */
.signup-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-soft);
  border: 1.5px solid #c5e8be;
  border-radius: var(--radius-md);
  padding: 20px 20px;
}
.signup-notice-box__icon { font-size: 32px; flex-shrink: 0; }
.signup-notice-box__title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.signup-notice-box__desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* ════════════════════════════════
   MOBILE — login.css
════════════════════════════════ */
@media (max-width: 768px) {
  body { overflow: auto; height: auto; }
  .login-main { align-items: flex-start; padding: 32px 16px 60px; }
  .login-card { padding: 32px 24px 36px; }
}

/* ── 카카오 버튼 ── */
.btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: #FEE500;
  color: #3C1E1E;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.btn-kakao:hover { background: #F0D900; }
