
body {
  background: #2c2c2c;
  font-family: "Segoe UI", "Raleway", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: block;
}


.form {
  width: 100%;
  max-width: 420px;
  background: #1e1e1e;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  color: #f5f5f5;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.form-header {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #f1575b;
  margin-bottom: 20px;
}


.form-elements {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.form-element label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: #ccc;
}

.form-element input,
.form-element select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #2b2b2b;
  color: #f5f5f5;
  transition: all 0.3s ease;
}


.form-element input:focus,
.form-element select:focus {
  outline: none;
  border-color: #f1575b;
  box-shadow: 0 0 0 3px rgba(241, 87, 91, 0.3);
}


.form-element select {
  background-color: #3b3b3b !important;
  color: #f1575b !important;
  appearance: none;
}

.form-element select option {
  background-color: #2c2c2c;
  color: #f1575b;
}

/* 버튼 */
.form-element button {
  padding: 12px;
  background: #f1575b;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.form-element button:hover {
  background: #d7464d;
}


.form .arrow {
  position: absolute;
  top: 51px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #f5f5f5;
}


.form .form-header > div {
  width: calc(100% / 3);
  color: #ddd;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.form.signup .form-header div.show-signup,
.form.signin .form-header div.show-signin,
.form.reset .form-header div.show-reset {
  color: #f1575b;
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.toggle-label {
  font-size: 16px;
  color: #ddd;
}


.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}


.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}


.switch input:checked + .slider {
  background-color: #f1575b;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}


.form-elements.two-column {
  display: flex;
  gap: 20px;
}

.form-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;
}


.form-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1400px;
  width: 100%;
}


.form {
  flex: 1 1 30%;
  min-width: 300px;
  max-width: 420px;
}


.form-element input,
.form-element select,
.form-element textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #2b2b2b;
  color: #f5f5f5;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-element textarea {
  resize: vertical;
  font-family: monospace;
}


.form-element input:focus,
.form-element select:focus,
.form-element textarea:focus {
  outline: none;
  border-color: #f1575b;
  box-shadow: 0 0 0 3px rgba(241, 87, 91, 0.3);
}

.bottom-buttons {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  box-sizing: border-box;
  padding: 0 20px;
}

.bottom-buttons button {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  font-size: 17px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #f1575b;
  color: white;
  transition: background 0.3s ease;
}

.bottom-buttons button:hover {
  background: #d7464d;
}

.bottom-buttons button + button {
  margin-top: 16px;
}

/* ✅ 반응형 모바일 대응 */
@media (max-width: 1000px) {
  .form-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .form {
    max-width: 90%;
  }

  .bottom-buttons {
    max-width: 90%;
  }
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #2b2b2b inset !important;
  box-shadow: 0 0 0 1000px #2b2b2b inset !important;
  -webkit-text-fill-color: #f5f5f5 !important;
  color: #f5f5f5 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.btn-view-more {
  padding: 10px 22px;
  background: #000000;
  color: #45474a !important;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s;
  box-shadow: 0 2px 8px rgba(90, 90, 90, 0.11);
}

.btn-view-more:hover {
  background: #000000;
  color: #8c52f8 !important;
  text-decoration: none;
}

/* 체크 상태 */
.switch input:checked + .slider {
  background-color: #f1575b;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #2b2b2b inset !important;
  box-shadow: 0 0 0 1000px #2b2b2b inset !important;
  -webkit-text-fill-color: #f5f5f5 !important;
  color: #f5f5f5 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.btn-view-more {
  padding: 10px 22px;
  background: #000000;
  color: #45474a !important;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s;
  box-shadow: 0 2px 8px rgba(90, 90, 90, 0.11);
}

.btn-view-more:hover {
  background: #000000;
  color: #8c52f8 !important;
  text-decoration: none;
}

#keyword-list td, #keyword-list th, .ad-keyword-table-wrap th, .ad-keyword-table-wrap td {
  text-align: center !important;
  vertical-align: middle;
}
.sticky-th {
  position: sticky;
  top: 0;
  background: #232323;
  z-index: 2;
}

.radio-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.radio-label {
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.radio-label input[type="radio"] {
  accent-color: #f1575b;
  margin-right: 6px;
  width: 17px;
  height: 17px;
}


@media (max-width: 768px) {
  .scroll-container {
    max-height: none !important;
    overflow-y: visible !important;
  }
}