/* 커스텀 placeholder 스타일 */
.custom-placeholder-container {
  position: relative;
}
.custom-placeholder-container .login-input:read-only + .custom-placeholder {
  opacity: 1 !important;
}

.custom-placeholder-container-readonly,
.custom-placeholder-container-readonly > input {
  background-color: #f5f5f5;
}

.custom-placeholder {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
  pointer-events: none;
  transition: opacity 0.2s;
  font-size: 16px;
  white-space: nowrap;
}
.login-input:focus + .custom-placeholder,
.login-input:not(:placeholder-shown) + .custom-placeholder {
  opacity: 0;
}
/* 필수 입력 별표 스타일 */
.required-star {
  color: #ff3b30;
  pointer-events: none;
}
main {
  padding-top: 150px;
  padding-bottom: 160px;
  width: 100%;
}

section {
  width: 100%;
  max-width: 464px;
  margin: 0 auto;
}

section h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: -2%;
  text-align: center;
}

.login-form-section {
  width: 100%;
  max-width: 464px;
  margin: 0 auto;
}

.login-type-selector {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.login-tyle-selector-item {
  display: block;
  cursor: pointer;
  width: 100%;
  text-align: center;
  padding: 15px;
  color: #717171;
  background-color: #f0f0f0;
  border-top: 2px solid #f0f0f0;
}

.login-form-section .selector-active {
  color: #000;
  font-weight: bold;
  background-color: #fff;
  border-color: #231f20;
}

.login-form-container {
  padding: 40px 0;
}

.login-form {
  display: block;
  width: 100%;
}

.login-input-group {
  position: relative;
  margin-bottom: 12px;
}

.messenger-layout {
    display: none;
    align-items: center;
    gap: 8px;
}

.messenger-select {
  width: 35% !important; 
  margin-bottom: 0 !important;
  color: #717171; 
}

.messenger-input {
  width: 65% !important;
}

.input-with-btn {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-btn .login-input {
  flex: 1;
  margin-bottom: 0;
}

.auth-btn {
  min-width: 100px;
  width: 100px;
  height: 48px;
  background-color: #231f20;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.auth-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.login-submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.login-input {
  display: block;
  width: 100%;
  height: 48px;

  border-width: 1px;
  border-radius: 5px;

  margin-bottom: 12px;

  padding: 0 16px;
  border: 1px solid #d8d8d8;
  color: #231f20;
  font-size: 16px;
}
.login-input::placeholder {
  color: #717171;
}

.login-error-text {
  color: #ef487b;
  font-size: 13px;
  margin-bottom: 12px;
}

.login-submit-button {
  width: 100%;
  height: 52px;
  background-color: #231f20;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.login-options {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #717171;
  font-size: 14px;
}

.login-input-container {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  justify-content: center;
  gap: 4px;
}

.login-input-container > input {
  margin: 0;
}

.login-input-container > input {
  flex: 1;
}

.login-input-button {
  width: 100px;
  min-width: 100px;
  height: 48px;
  border: 1px solid #231f20;
  background-color: #fff;
  font-size: 14px;
  border-radius: 5px;
  letter-spacing: -1px;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-container > .modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-container > .login-form-modal {
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 40px 32px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.no-auth-modal {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;

  text-align: center;
}

.auth-change-modal {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;

  text-align: center;
}

.modal-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.modal-button-white,
.modal-button-black {
  width: 100%;
  height: 48px;
  border-radius: 5px;
  cursor: pointer;
  border: 0;
}
.modal-button-white {
  background-color: #fff;
  color: #231f20;
  border: 1px solid #d8d8d8;
}

.modal-button-black {
  background-color: #231f20;
  color: #fff;
  border: none;
}

.readonly-value {
  color: #999999;
  margin-left: 20px;
}

/* 모바일 레이아웃 */
@media (max-width: 768px) {
  .main-content {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .modal-container {
    padding: 0 30px;
  }

  .login-form-modal {
    margin: 0;
    padding: 28px 24px;
    max-width: 300px;
  }

  .main-content section h1 {
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 0;
  }

  .login-tyle-selector-item {
    padding: 14px;
    font-size: 14px;
  }

  .login-form-container {
    padding: 20px !important;
  }

  .login-input {
    font-size: 14px;
    margin-bottom: 8px;
    height: 44px;
  }

  .login-input-button {
    height: 44px;
  }

  .login-input-container {
    margin-bottom: 8px;
  }
  .custom-placeholder {
    font-size: 14px;
    left: 16px;
  }
}
