/* ===== 로그인 화면 (원본: res/layout/activity_login.xml) ===== */
body.login {
  background: var(--c-primary);
  color: var(--c-white);
  min-height: 100vh;
  min-height: 100dvh;
}

/* 우상단 설정 버튼 */
.login__topbar {
  display: flex; justify-content: flex-end;
  padding: 14px 14px 0;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding: 0; border: 0; background: none;
  color: var(--c-white);
  opacity: .5;
  border-radius: 50%;
  transition: opacity .15s, background .15s;
}
.icon-btn:hover, .icon-btn:focus-visible { opacity: .9; background: rgba(255,255,255,.08); }
.icon-btn svg { width: 26px; height: 26px; }

/* 가운데 영역 */
.login__main {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px 40px;
}
.login__logo {
  display: block;
  width: 100%; max-width: 420px; height: auto;
}

.login__form {
  width: 100%; max-width: 360px;
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 12px;
}

.field { position: relative; }
.field__input {
  width: 100%; height: 48px;
  padding: 0 16px;
  border: 0; outline: none;
  border-radius: var(--radius);
  background: var(--c-input-bg);
  color: var(--c-primary-dark);
  font-size: 17px; font-weight: 600;
  transition: box-shadow .15s, background .15s;
}
.field__input::placeholder { color: rgba(89,27,68,.55); font-weight: 600; letter-spacing: .5px; }
.field__input:focus { background: #b07a9b; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.field--pw .field__input { padding-right: 52px; }

.field__toggle {
  position: absolute; top: 0; right: 0;
  width: 52px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none;
  color: var(--c-primary-dark);
}
.field__toggle svg { width: 26px; height: 26px; }
.field__toggle .ic-hide { display: none; }
.field__toggle[aria-pressed="false"] .ic-show { display: none; }
.field__toggle[aria-pressed="false"] .ic-hide { display: block; opacity: .55; }

.btn-sign {
  height: 52px;
  margin-top: 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 20px; font-weight: 600; letter-spacing: .3px;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
  transition: background .15s, transform .05s;
}
.btn-sign:hover  { background: #ca55a9; }
.btn-sign:active { background: var(--c-accent-press); color: rgba(255,255,255,.8); transform: translateY(1px); }
.btn-sign:disabled { opacity: .6; cursor: default; }

.login__privacy {
  align-self: center;
  margin-top: 20px;
  color: var(--c-primary-dark);
  font-size: 13px; font-weight: 700;
  text-decoration: none;
}
.login__privacy:hover { text-decoration: underline; }

.mock-badge {
  position: fixed; left: 12px; bottom: 12px;
  padding: 4px 10px;
  background: #ffd54f; color: #4a3500;
  border-radius: 12px;
  font-size: 12px; font-weight: 700;
}

/* 태블릿 (원본: values-sw600dp) */
@media (min-width: 600px) {
  .login__topbar { padding: 20px 20px 0; }
  .icon-btn { width: 48px; height: 48px; }
  .icon-btn svg { width: 32px; height: 32px; }
  .login__form { max-width: 420px; }
  .field__input { height: 56px; font-size: 20px; }
  .field__toggle { height: 56px; width: 60px; }
  .btn-sign { height: 58px; font-size: 22px; }
}

/* 가로 화면에서 높이가 낮을 때: 로고 줄이고 간격 축소 (원본: values-land) */
@media (orientation: landscape) and (max-height: 560px) {
  .login__logo { max-width: 260px; }
  .login__form { margin-top: 20px; }
  .btn-sign { margin-top: 16px; }
}
