@charset "utf-8";

/* ===== 1) Micro Reset / Normalization ===== */
html, body { margin:0; padding:0; }
html { box-sizing: border-box; -webkit-text-size-adjust:100%; }
*, *::before, *::after { box-sizing: inherit; }

/* 링크/버튼 기본 */
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

/* ===== 2) Form Controls: 공통 안정화 ===== */
input, select, textarea {
  font: inherit;
  color: inherit;
  background-color: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

/* 텍스트/비번 입력 필드 공통 크기 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"] {
  height: 44px;
  padding: 0 12px;
  line-height: 44px;
}

/* 포커스 상태 */
input:focus, select:focus, textarea:focus {
  border-color: #0685d5;
  box-shadow: 0 0 0 3px rgba(6,133,213,0.15);
}

/* placeholder 색 */
::placeholder { color: #98a2af; opacity: 1; }
:-ms-input-placeholder { color:#98a2af; }
::-ms-input-placeholder { color:#98a2af; }

/* 크롬 자동완성 노란 배경 제거 */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fff inset !important;
  -webkit-text-fill-color: #192e42 !important;
  caret-color: #192e42;
}

/* 비활성화 */
input:disabled, select:disabled, textarea:disabled {
  background-color: #f5f7fa; color: #98a2af; cursor: not-allowed;
}

/* ===== 3) 로그인 레이아웃 ===== */
body.page-login {
  min-height: 100vh;
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #192e42;
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(6,133,213,0.12) 0%, rgba(6,133,213,0) 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(25,46,66,0.10) 0%, rgba(25,46,66,0) 60%),
    #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrap {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(6,133,213,0.06);
  padding: 28px;
  backdrop-filter: blur(6px);
}

.login-head {
  text-align: center;
  margin-bottom: 18px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 6px;
}

.login-sub {
  font-size: 14px;
  color: #5b6066;
  margin: 0;
}

.login-form .form-item {
  margin-top: 14px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.inp-with-btn {
  position: relative;
}

.inp-with-btn input {
  padding-right: 44px;
}

.inp-with-btn .btn-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.inp-with-btn .btn-eye:hover {
  background: rgba(0,0,0,0.04);
}

.btn-primary {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(180deg, #003b90 0%, #0685d5 100%);
  border: none;
  cursor: pointer;
  transition: transform .04s ease, box-shadow .2s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(6,133,213,0.25);
}

.btn-primary:active {
  transform: translateY(1px);
}

.form-msg {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #b42318;
  background: #ffefef;
  border: 1px solid #ffd8d8;
  border-radius: 8px;
}

.login-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  letter-spacing: -0.2px;
}

/* 모바일 */
@media (max-width: 420px){
  .login-card {
    padding: 22px;
    border-radius: 14px;
  }
  .login-title {
    font-size: 20px;
  }
}
