.login-wrap {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 154px);
}

.login-main {
  padding: 60px 16px;
  flex: 1;
}

.login-tabs {
  display: flex;
  margin-bottom: 36px;
}

.login-tab {
  flex: 1 0 0;
  display: flex;
  height: 54px;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  background: #fff;
  font-size: 16px;
  font-weight: 400;
  color: #555;
}

.login-tabs .active {
  background-color: #f6f6f6;
  font-weight: 600;
  color: #222;
}

.login-panel {
  display: none;
}

.login-panel.active {
  display: block;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.login-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-input {
  width: 100%;
  border: 0;
  height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
  font-size: 16px;
  outline: none;
}

.login-input::placeholder {
  color: #ccc;
  font-size: 16px;
}

.login-input:focus {
  border-bottom-color: #555;
  color: #222;
  background-color: #f6f6f6;
}

.login-input.error {
  border-bottom-color: var(--danger);
  color: var(--danger);
}

.login-input.error::placeholder {
  color: var(--danger);
  font-weight: 400;
}

.login-input__id.error .clear svg path,
.login-input__password.error .clear svg path,
.login-input__password.error .eye svg path {
  fill: var(--danger);
}

.login-input__id,
.login-input__password {
  position: relative;
}

.login-input__id .clear,
.login-input__password .clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.login-input__id .clear.visible {
  opacity: 1;
  pointer-events: auto;
}

.login-input__password .eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.login-input__password .clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.login-input__password .clear.visible {
  opacity: 1;
  pointer-events: auto;
}

.login-input__password:has(.clear.visible) .eye {
  right: 34px;
}

.login-input__id:not(.error):focus-within .clear svg path,
.login-input__password:not(.error):focus-within .clear svg path,
.login-input__password:not(.error):focus-within .eye svg path {
  fill: #222;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.login-checkbox-input {
  display: none;
}

.login-remember-checkbox {
  display: flex;
  width: 16px;
  height: 16px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.login-remember-checkbox .check-icon {
  display: none;
}

.login-checkbox-input:checked + .login-remember-checkbox {
  background: #222;
  border-color: #222;
}

.login-checkbox-input:checked + .login-remember-checkbox .check-icon {
  display: block;
}

.login-remember-label {
  cursor: pointer;
}

.login-links a {
  color: var(--muted);
  margin-left: 12px;
  text-decoration: none;
  font-size: 14px;
}

.login-btn {
  background: #222;
  color: #fff;
  padding: 16px 40px;
  border: 0;
  border-radius: 2px;
  font-size: 16px;
  height: 54px;
}

.login-btn:disabled {
  background: #ededed;
  color: #999;
  cursor: not-allowed;
}

.order-no-search-btn {
  background: #fff;
  color: #555;
  padding: 16px 40px;
  font-weight: 500;
  font-size: 16px;
  height: 54px;
}

.guest-btn-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
  margin-bottom: 36px;
  font-weight: 300;
  color: #ccc;
  font-size: 14px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ccc;
}

.login-divider span {
  padding: 0 10px;
}

.login-socials {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.login-social {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.login-social.kakao {
  background: #ffe100;
  color: #111;
}

.login-social.naver {
  background: #00c73c;
  color: #fff;
}

.login-signup {
  text-align: center;
  color: #ccc;
  font-weight: 300;
  margin-top: 60px;
}

.login-signup a {
  color: #999999;
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
  margin-left: 8px;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.eye-close {
  display: none;
}

.eye.active .eye-open {
  display: none;
}

.eye.active .eye-close {
  display: block;
}

footer {
  display: none !important;
}
