* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #d8d4c8;
  background: #0b0d14;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(120, 70, 30, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(40, 30, 80, 0.35) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}

/* 가운데 정렬 */
.login_wrap {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login_box {
  width: 100%;
  max-width: 360px;
  padding: 32px 24px 28px;
  background: linear-gradient(180deg, rgba(28, 26, 34, 0.95), rgba(16, 15, 22, 0.95));
  border: 1px solid #3a3226;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(200, 140, 60, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.7);
}

/* 타이틀 */
.login_title {
  text-align: center;
  margin-bottom: 28px;
}

.login_sub {
  font-size: 13px;
  letter-spacing: 8px;
  padding-left: 8px;
  color: #8a7c62;
}

.login_title h1 {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #e8c27a;
  text-shadow:
    0 0 12px rgba(232, 170, 80, 0.45),
    0 3px 0 #5a3a12;
}

.login_title h1 span {
  color: #c0452f;
  text-shadow:
    0 0 12px rgba(220, 70, 40, 0.5),
    0 3px 0 #3a0e06;
}

.login_line {
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, #8a6a3a, transparent);
}

/* 입력 */
.login_field {
  margin-bottom: 14px;
}

.login_field label {
  display: block;
  font-size: 12px;
  color: #9a8f7a;
  margin-bottom: 6px;
}

.login_field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 16px; /* iOS 확대 방지 */
  color: #ece6d8;
  background: #0a0a0f;
  border: 1px solid #2e2a24;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login_field input::placeholder {
  color: #4f4a42;
}

.login_field input:focus {
  border-color: #b8893f;
  box-shadow: 0 0 0 3px rgba(184, 137, 63, 0.18);
}

/* 버튼 */
.btn {
  display: block;
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s, border-color 0.15s, color 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn_main {
  margin-top: 22px;
  color: #1a1206;
  background: linear-gradient(180deg, #f0c878, #b8862f);
  border: 1px solid #f5d796;
  box-shadow: 0 4px 14px rgba(200, 140, 50, 0.3);
}

.btn_main:hover {
  filter: brightness(1.1);
}

.btn_row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn_sub {
  flex: 1;
  color: #b8ad96;
  background: #17161d;
  border: 1px solid #3a3428;
}

.btn_sub:hover {
  color: #e8c27a;
  border-color: #8a6a3a;
}

/* 작은 화면 */
@media (max-width: 380px) {
  .login_box {
    padding: 26px 18px 22px;
  }
  .login_title h1 {
    font-size: 38px;
  }
}

/* 키 낮은 화면(가로모드) */
@media (max-height: 520px) {
  .login_wrap {
    align-items: flex-start;
  }
  .login_title {
    margin-bottom: 16px;
  }
}
