@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html, body {
  margin: 0px;
  height: 100%;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

a {
  text-decoration: none;
}

:root {
  --x-100: rgba(242, 244, 246, 1);
  --x-300: rgba(196, 199, 203, 1);
  --x-500: rgba(84, 84, 84, 1);
  --x-600: rgba(231, 0, 11, 1);
  --x-700: rgba(49, 65, 88, 1);
  --transparent: rgba(0, 0, 0, 0);
  --black: rgba(0, 0, 0, 1);
  --white: rgba(250, 250, 250, 1);
  --pri: rgba(123, 60, 235, 1);
  --slate-50: rgba(248, 250, 252, 1);
  --slate-900: rgba(15, 23, 43, 1);
  --indigo-50: rgba(238, 242, 255, 1);
  --indigo-100: rgba(224, 231, 255, 1);
  --indigo-200: rgba(198, 210, 255, 1);
  --indigo-300: rgba(163, 179, 255, 1);
  --indigo-400: rgba(124, 134, 255, 1);
  --indigo-500: rgba(97, 95, 255, 1);
  --indigo-600: rgba(79, 57, 246, 1);
  --indigo-800: rgba(55, 42, 172, 1);
  --indigo-900: rgba(49, 44, 133, 1);
  --indigo-950: rgba(30, 26, 77, 1);
}

.screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  background-color: var(--x-100);
  align-items: center;
  justify-content: center;
}

.screen .group {
  width: 550px;
  height: 570px;
  position: relative;
}

.screen .frame {
  display: flex;
  flex-direction: column;
  width: 550px;
  align-items: center;
  gap: 24px;
  padding: 40px;
  position: absolute;
  top: 153px;
  left: 0;
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.screen .group-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 140px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.screen .div {
  position: relative;
  width: 472px;
  height: 162px;
  margin-right: -2.00px;
}

.screen .frame-2 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: absolute;
  top: 0;
  left: 0;
}

.screen .frame-3 {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.screen .text-wrapper {
  position: relative;
  width: 50px;
  font-family: "Pretendard", Helvetica;
  font-weight: 600;
  color: var(--x-500);
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
}

.screen .div-wrapper {
  display: flex;
  width: 400px;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  position: relative;
  border-radius: 12px;
  border: 1px solid;
  border-color: var(--x-300);
  background-color: var(--white);
  transition: border-color 0.2s ease;
}

.screen .div-wrapper:focus-within {
  border-color: var(--x-300); /* 푸른색 띠 제거 - 원래 색상 유지 */
  outline: none !important;
  box-shadow: none !important;
  -webkit-focus-ring-color: transparent !important;
}

.screen .input-field {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--x-700);
  font-size: 20px;
  font-family: "Pretendard", Helvetica;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
}

.screen .input-field:focus,
.screen .input-field:focus-visible,
.screen .input-field:focus-within {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-focus-ring-color: transparent !important;
}

/* 모든 input 요소에 크롬 파란색 포커스 제거 */
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-focus-ring-color: transparent !important;
}

.screen .input-field::placeholder {
  color: var(--x-500);
}

.screen .frame-4 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  position: absolute;
  top: 136px;
  left: 0;
}

.screen .checkboxes {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  position: relative;
  flex: 0 0 auto;
}

.screen .state-layer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  border-radius: 100px;
  cursor: pointer;
  z-index: 1;
  pointer-events: auto;
}

.screen .checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.screen .container {
  position: relative;
  width: 18px;
  height: 18px;
  background-color: transparent;
  border: 2px solid var(--x-300);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.screen .checkbox-input:checked + .container {
  background-color: var(--pri);
  border-color: var(--pri);
}

.screen .check-small {
  position: absolute;
  top: calc(50% - 12px);
  left: calc(50% - 12px);
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screen .checkbox-input:checked ~ .check-small {
  opacity: 1;
}

.screen .text-wrapper-3 {
  position: relative;
  width: fit-content;
  color: var(--x-500);
  font-size: 16px;
  font-family: "Pretendard", Helvetica;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.screen .text-wrapper-4 {
  position: absolute;
  top: 140px;
  right: 0;
  color: var(--x-500);
  font-size: 16px;
  font-family: "Pretendard", Helvetica;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.screen .text-wrapper-4:hover {
  color: var(--pri);
  text-decoration: underline;
}

.screen .group-2 {
  position: relative;
  width: 472px;
  min-height: 83px;
  margin-right: -2.00px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen .frame-5 {
  width: 470px;
  justify-content: center;
  position: relative;
  background-color: var(--pri);
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.screen .frame-5:hover {
  background-color: var(--indigo-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 60, 235, 0.3);
}

.screen .text-wrapper-5 {
  position: relative;
  width: fit-content;
  margin-top: -1.00px;
  font-family: "Pretendard", Helvetica;
  font-weight: 500;
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.screen .p {
  position: relative;
  margin-top: 20px;
  left: 0;
  transform: none;
  color: var(--x-600);
  font-size: 16px;
  font-family: "Pretendard", Helvetica;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 460px;
  width: 100%;
  text-align: center;
  padding: 0 10px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.screen .rectangle {
  position: relative;
  width: 200px;
  height: 1px;
  background-color: #d9d9d9;
  margin: 30px auto 0;
}

.screen .frame-6 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  margin-top: 30px;
  flex: 0 0 auto;
}

.screen .div-2 {
  position: relative;
  width: fit-content;
  margin-top: -1.00px;
  color: var(--x-500);
  font-size: 16px;
  font-family: "Pretendard", Helvetica;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.screen .span {
  font-family: "Pretendard", Helvetica;
  font-weight: 400;
  color: #545454;
  font-size: 16px;
  letter-spacing: 0;
}

.screen .text-wrapper-6 {
  color: var(--pri);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.screen .text-wrapper-6:hover {
  color: var(--indigo-600);
}

.screen .LOGO {
  position: absolute;
  top: 0;
  left: 47px;
  width: 456px;
  height: 162px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen .logo-content {
  text-align: center;
}

.screen .logo-image {
  width: auto;
  height: 120px;
  max-width: 600px;
  margin-bottom: 8px;
  object-fit: contain;
}

.screen .logo-text {
  font-size: 48px;
  font-weight: 700;
  color: var(--x-700);
  margin-bottom: 8px;
  font-family: "Pretendard", Helvetica;
}

.screen .logo-accent {
  color: var(--pri);
}

.screen .logo-subtitle {
  font-size: 16px;
  color: var(--x-500);
  font-weight: 400;
  font-family: "Pretendard", Helvetica;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .screen .group {
    width: 90%;
    max-width: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  
  .screen .LOGO {
    order: -1;
    left: 0;
    width: 100%;
    height: auto;
    position: relative;
    margin-bottom: 16px;
    top: 0;
  }
  
  .screen .logo-image {
    height: 60px;
    max-width: 300px;
  }
  
  .screen .frame {
    width: 100%;
    align-items: stretch; /* center 대신 stretch로 변경하여 자식 요소들이 전체 너비를 차지하도록 */
    padding: 24px 24px; /* 좌우 패딩을 16px로 설정하여 약간의 여백 유지 */
    top: 0;
    gap: 12px; /* 16px에서 12px로 줄여서 form 전체 높이를 낮춤 */
    position: relative;
    margin-top: 0;
  }
  
  .screen .group-wrapper {
    gap: 12px; /* 16px에서 12px로 줄임 */
  }
  
  .screen .div {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .screen .frame-2 {
    gap: 12px;
    position: relative;
    width: 100%;
  }
  
  .screen .frame-3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  
  .screen .div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .screen .text-wrapper-4 {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 6px;
    align-self: flex-end;
  }
  
  .screen .text-wrapper {
    width: auto;
    font-size: 15px;
  }
  
  .screen .div-wrapper {
    width: 100%;
    padding: 10px 8px;
    border-radius: 10px;
  }
  
  .screen .input-field {
    font-size: 15px;
  }
  
  .screen .frame-4 {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 8px;
    gap: 6px;
  }
  
  .screen .checkboxes {
    padding: 3px;
  }
  
  .screen .checkbox-input {
    width: 16px;
    height: 16px;
  }
  
  .screen .container {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
  }
  
  .screen .check-small {
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
  }
  
  .screen .text-wrapper-3 {
    font-size: 14px;
  }
  
  .screen .text-wrapper-4 {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 8px;
    font-size: 14px;
    display: inline-block;
  }
  
  .screen .login-options-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-top: 12px;
    margin-bottom: 12px;
  }
  
  .screen .group-2 {
    width: 100%;
    margin-top: 12px;
    min-height: auto; /* 모바일에서 min-height 제거하여 높이를 낮춤 */
  }
  
  .screen .frame-5 {
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
  }
  
  .screen .text-wrapper-5 {
    font-size: 15px;
  }
  
  .screen .p {
    font-size: 13px;
    margin-top: 8px; /* 12px에서 8px로 줄임 */
  }
  
  .screen .rectangle {
    display: none; /* 모바일에서 가로선 숨김 */
  }
  
  .screen .frame-6 {
    gap: 12px;
    margin-top: 4px; /* 8px에서 4px로 줄임 */
  }
  
  .screen .div-2 {
    font-size: 13px;
  }
  
  .screen .span {
    font-size: 13px;
  }
  
  .screen .text-wrapper-6 {
    font-size: 13px;
  }
  
  /* 모바일에서 placeholder 숨기기 */
  .screen .input-field::placeholder {
    opacity: 0;
    color: transparent;
  }
}
