/* 초기값  */
body {
  background-color: var(--smcw-color-body);
  box-sizing: border-box;
  font-size: 16px;
  margin: 0;
  overflow-y: visible;
}

input,
select,
textarea {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

input:focus {
  color: white !important;
}

.form-control {
  background-color: var(
    --smcw-color-report-textarea-bright,
    var(--smcw-color-report-textarea)
  ) !important;
  color: #ffffff !important;
  border: none !important;
}

.frame3 {
  display: flex;
}

.institution-logo,
.institution-logo2 {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 200px;
  height: 50px;
  margin: 20px 20px;
}

/* ID 자동완성 시 배경, 글자색 설정 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--smcw-color-report-patient) inset !important;
  -webkit-text-fill-color: #ffffff;
}

.schema-element {
  font-weight: bold;
  font-size: 15px;
  margin-right: 15px;
  cursor: pointer;
  width: fit-content;
  float: left;
}

.schema-active {
  color: #05c3a7;
}

.frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--smcw-color-tab-content);
  width: max-content;
  padding: 20px;
  height: 480px;
  position: relative;
  top: calc(50% - 240px);
}

.frame1 {
  text-align: center;
  margin-bottom: 40px;
}

@font-face {
  font-family: 'moebius_regular';
  src: url(../../fonts/moebius_regular/Moebius_Regular.ttf) format('truetype');
  font-display: swap;
}

.frame2 {
  width: 588px;
  color: #666982;
}

.frame2-1 input,
.frame2-2 input {
  outline: none;
  background-color: var(--smcw-color-report-patient);
  border: none;
  color: #ffffff;
  font-size: 18px;
  width: 520px;
  height: 52px;
  margin-bottom: 15px;
  padding: 16px 20px 16px 20px;
}

.login-button {
  margin-top: 20px;
  white-space: nowrap;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  width: 520px;
  height: 64px;
  border: none;
}

.login-button {
  background: var(--smcw-color-login-button);
}

.vet-login-button {
  background: #782eff;
}

#forgot,
#forgot:hover,
.signup-button,
.signup-button:hover {
  cursor: pointer;
  color: white;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  text-decoration: none;
}

.seperate {
  margin: 0px 5px;
  color: #d9d9d9;
}

/* 체크박스 디자인 */

input[id='remember'] + label {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #878787;
  border-radius: 50%;
  margin: 0;
  cursor: pointer;
}

input[id='remember']:checked + label {
  content: '\2714';
  background-color: #05c3a7;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

input[id='remember'] {
  display: none;
}

.frame2-3 {
  margin-top: 20px;
  display: flex;
  color: #878787;
  width: 520px;
  justify-content: space-between;
}

.frame2-4 {
  margin-top: -10px;
  color: #878787;
  display: flex;
  justify-content: space-evenly;
  align-self: center;
}

.institution-select {
  max-width: 500px;
}

/* 모바일 뷰어 */
@media screen and (max-width: 767px) {
  body {
    overflow: hidden;
  }

  .frame {
    top: 50px;
  }

  .frame2 {
    width: 90vw;
  }

  .institution-logo,
  .institution-logo2 {
    width: 200px;
    height: 100px;
  }

  .frame2-1 input,
  .frame2-2 input {
    padding: 10px;
    margin: 8px 0;
    width: 100%;
    border-radius: 8px;
  }

  .bottom-area {
    display: none;
  }

  .frame2-4 {
    margin-top: 0px;
  }

  .login-button {
    width: 90vw;
    padding: 23px 0;
  }

  .frame2-3 {
    display: flex;
    flex-direction: column;
    width: auto;
  }

  #forgot {
    text-align: center;
  }

  .company-info {
    display: none !important;
  }
}

.ui-autocomplete {
  max-height: 300px;
  overflow-y: auto;
  /* prevent horizontal scrollbar */
  overflow-x: hidden;
  position: absolute;
  cursor: default;
  z-index: 10000000000 !important;
}

.login-form {
  position: relative;
  text-align: -webkit-center;
  height: calc(100% - 120px);
}

.login-title {
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  color: #ffffff;
  margin-top: 50px;
}

/* =====================================================================
   [GOCDSS-5270] 비밀번호 재설정 화면
   로그인 화면(.frame/.frame2/.text-input/.login-button)을 그대로 재사용하고,
   이 화면에만 필요한 것(정책 안내 / 오류 문구 / 무효 링크 안내)만 덧붙인다.
   ===================================================================== */
.reset-frame {
  /* 입력이 로그인보다 적어 480px 고정이면 아래가 비어 보인다 — 내용에 맞추되,
     min-height 로 바닥을 잡아 입력이 하나(새 비밀번호)뿐이어도 카드가 쪼그라들지 않게 한다 */
  height: auto;
  min-height: 380px;
  top: calc(50% - 190px);
}

/* 입력이 '새 비밀번호' 하나뿐이라 로그인 화면의 52px 그대로면 카드 안에서 왜소해 보인다.
   아래 '변경' 버튼(.login-button 64px)과 높이를 맞춰 시각 균형을 잡는다.
   ⚠ .reset-frame 하위로만 한정 — 전역 .frame2-1 을 건드리면 로그인 화면이 같이 바뀐다. */
.reset-frame .frame2-1 input {
  height: 64px;
}

/* 정책 안내 — 입력 아래 작은 보조 문구 */
.reset-hint {
  width: 520px;
  margin: 4px auto 0;
  text-align: left;
  font-size: 13px;
  line-height: 18px;
  color: #a0a5b9;
}

/* 오류 문구 — alert 팝업 대신 폼 안에서 바로 보이게(입력 맥락을 잃지 않는다) */
.reset-error {
  width: 520px;
  margin: 10px auto 0;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  color: #fe5656;
}

/* 토큰 무효/만료 안내 */
.reset-invalid {
  width: 520px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
}

/* 무효 시 노출되는 '비밀번호 찾기' — button 이 아닌 a 라서 정렬을 맞춰준다 */
.reset-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.reset-link-button:hover {
  color: #ffffff;
  text-decoration: none;
}

/* 하단 '로그인 화면으로' */
.reset-foot {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 640px) {
  .frame2,
  .reset-hint,
  .reset-error,
  .reset-invalid {
    width: 100%;
  }
  .frame2-1 input,
  .frame2-2 input,
  .login-button {
    width: 100%;
  }
}
