.hidden {
  display: none;
}

.register-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  display: flex;
  align-items: center;
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  width: 900px;
}

.card-header {
  background: var(--title-bg);
  color: white;
  padding: 1.5rem;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground-light);
}

.card-body {
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .register-container {
    padding: 15px;
  }

  .row {
    gap: 0px;
  }

  .card {
    width: 100%;
  }

  .card-header {
    padding: 1rem;
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .card-title {
    font-size: 1.25rem;
    align-items: flex-start;
  }

  .card-body {
    padding: 1rem;
  }

  .form-group label {
    font-size: 0.8125rem;
    align-items: flex-start;
  }

  .row {
    flex-direction: column;
  }
}

:root {
  --border-color: #cbd5e1;
  --active-color: #0096C7;
  --success-color: #28dc4c;
}

.float-field {
  position: relative;
  width: 100%;
}

fieldset {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 21px;
  transition: border-color .25s;
  position: relative;
}

.dropdown-box fieldset input {
  transition: background 0.3s ease, padding-left 0.3s ease, filter 0.3s ease, color 0.3s ease;
}

.dropdown-box fieldset input:focus {
  background: url("https://static.denizkariyer.cloud/img/search2.svg") no-repeat 10px center;
  background-size: 16px;
  padding-left: 30px;
}

fieldset:hover {
  box-shadow: 0 5px 5px -1px rgb(0 0 0 / 8%);
}

.float-field:has(input:focus) fieldset {
  border-width: 0.1rem;
  border-color: var(--active-color) !important;
}

.float-field.active fieldset {
  border-color: #4ad6084f;
  border-width: 0.1rem;
}

input {
  width: 100%;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  outline: none;
  position: absolute;
  left: 0;
  top: -8px;
}

.numInputWrapper input {
  position: static;
}

textarea {
  width: 100%;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  outline: none;
  left: 0;
  top: -20px;
  position: relative;
}

legend {
  padding: 0;
  font-size: 12px;
  color: #a3a3a3;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  transform: translateX(5px);
  transition: max-width .25s ease;
  display: flex;
  align-items: center;
  z-index: 1;
  position: relative;
}


.float-field.active legend {
  max-width: 200px;
  padding-right: 15px
}

.placeholder {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 12px;
  color: #999;
  pointer-events: none;
  transition: .25s;
  display: flex;
}

.float-field.active .placeholder {
  opacity: 0;
  transform: translateY(-35%)
}

.input-icon {
  width: 16px;
  height: 16px;
  opacity: .6;
  pointer-events: none;
  filter: invert(45%) sepia(90%) saturate(400%) hue-rotate(150deg);
  margin-right: 4px
}

input:focus {
  box-shadow: none;
}

.edit-email {
  background: linear-gradient(to right, #0096C7, #63bdf1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -2px;
  top: -24%;
  padding: 17px;
  border-radius: 0px 8px 8px 0px;
}

.edit-email img {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.edit-email:hover img {
  transform: scale(1.2);
  opacity: 0.8;
}



.pwd-popover {
  position: absolute;
  inset: auto auto auto 0;
  margin-top: 8px;
  z-index: 1000;
  width: 320px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  padding: 12px 14px;
  display: none;
}

.pwd-popover[aria-hidden="false"] {
  display: block;
}

.pwd-popover__title {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  margin-bottom: 6px;
}

.pwd-reqs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pwd-reqs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  /* kırmızı */
  font-size: 13px;
  line-height: 1.25;
  padding: 6px 0;
}

.pwd-reqs li b {
  font-weight: 700;
}

.pwd-reqs li .ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  filter: none;
}

/* Kırmızı çarpı */
.pwd-reqs li .ico {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23ef4444" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>');
}

/* Yeşil tik */
.pwd-reqs li.ok {
  color: #16a34a;
}

.pwd-reqs li.ok .ico {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%2316a34a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
}

/* Konteyneri relative yapın ki popover doğru konumlansın */
.form-group {
  position: relative;
}

/* Mobil taşma */
@media (max-width: 420px) {
  .pwd-popover {
    width: calc(100vw - 32px);
    left: 0;
    right: auto;
  }
}

/* Register – "Kayıt Ol" butonu (Turnstile onay beklerken) */
#member-save[disabled],
#member-save[disabled]:hover,
#member-save[disabled]:focus {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
  background-color: #e5e7eb;
  color: #9ca3af;
  border-color: transparent;
}

/* Kayıt butonu loading state (AJAX sırasında spinner) */
#member-save.is-loading {
  position: relative;
  pointer-events: none;
}

/* Yalnızca yazıyı gizle – spinner görünür kalsın */
#member-save.is-loading .btn-label {
  visibility: hidden;
}

#member-save.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #1e3a8a;
  /* Sabit renk – currentColor değil */
  border-top-color: transparent;
  transform: translate(-50%, -50%);
  animation: dk-spinner .8s linear infinite;
}

@keyframes dk-spinner {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}