/* Temel: akışkan tipografi ve alanlar */
:root {
  --gap: 16px;
  --radius: 16px;
}

:root {
  --btn-black-start: #0f0f10;
  --btn-black-end: #2b2b2e;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  /* yatay taşmayı engelle */
  background: #f5f5f5;
}

/* 100vh mobil bug için dvh kullan */
.content {
  display: flex;
  min-height: 100dvh;
}

/* Sol bölüm hafif büyük ama akışkan */
.content-left {
  flex: 0.90 1 0;
  /* büyüyebilir/küçülebilir */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  background: #f5f5f5;
}

/* Sağ bölüm görsel alan; sabit yükseklik yok */
.content-right {
  flex: 1.00 1 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url('./download.png') no-repeat center center / cover;
  padding: clamp(16px, 4vw, 48px);
  text-align: center;
  overflow: hidden;
  /* içerik kutusu yönetir */
}

/* Form kutusu: genişlik ve iç boşluk akışkan */
.form-wrapper {
  background: linear-gradient(135deg, #ffffff, #f0f4f8);
  padding: clamp(14px, 2.2vw, 28px);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: clamp(300px, 42vw, 520px);
  /* ana kaldıraç */
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 12px);
  margin: clamp(8px, 2vh, 24px) auto;
  height: auto;
  min-height: fit-content;
}

.logo img {
  width: clamp(200px, 35vw, 420px);
  display: block;
  margin: clamp(16px, 4vh, 40px) auto clamp(10px, 2vh, 20px) auto;
}

.text-title {
  text-align: center;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin: 5px 0 14px 0;
  color: #222;
}

.field-group {
  margin-bottom: clamp(8px, 1.4vw, 12px);
  position: relative;
}

.field-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: clamp(13px, 1.6vw, 14px);
}

.input {
  width: 100%;
  padding: clamp(10px, 1.6vw, 12px) clamp(14px, 2.4vw, 45px) clamp(10px, 1.6vw, 12px) 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font-size: clamp(14px, 1.8vw, 15px);
  outline: none;
  box-sizing: border-box;
  background: #fff;
}

.input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.18);
}

.btn-submit {
  width: 100%;
  padding: clamp(10px, 1.8vw, 12px);
  background: linear-gradient(135deg, var(--btn-black-start), var(--btn-black-end));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  font-size: clamp(14px, 1.8vw, 16px);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.password-group .toggle-password {
  position: absolute;
  top: calc(50% + 11px);
  /* input orta hizası */
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 24px;
}

.eye.is--show,
.eye-off.is--show {
  display: inline-block;
}

.eye.is--hide,
.eye-off.is--hide {
  display: none;
}

/* Checkbox satırı düzgün ortalansın */
.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(13px, 1.6vw, 14px);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.checkbox-label input {
  accent-color: #4f46e5;
  width: 16px;
  height: 16px;
}

.checkbox-checkmark::after {
  display: block;
}

/* Popup: her cihazda taşmayan, scroll edilebilir */
#popup-container {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#popup-background {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#popup-content {
  position: relative;
  background: #fff;
  padding: clamp(16px, 3vw, 40px);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: min(92vw, 1000px);
  max-height: min(92vh, 900px);
  /* kritik: büyük ekranlarda da küçüklerde de taşma yok */
  overflow: auto;
  /* içerik kayabilir */
  text-align: center;
  z-index: 10;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

#popup-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-top: clamp(12px, 2vh, 20px);
}

#popup-content a {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--btn-black-start), var(--btn-black-end));
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

#popup-content a:hover {
  opacity: 0.9;
}

#popup-container:not(.active) {
  display: none;
}

.popup-image {
  width: 100%;
  max-width: 600px;
  /* geçici üst sınır */
  height: auto;
  margin: 16px auto 0;
  display: block;
  border-radius: 10px;
}

.text-center {
  text-align: center;
  margin-top: -8px;
}

.text-center a {
  font-size: clamp(13px, 1.6vw, 14px);
  font-weight: 600;
  color: #111;
  ;
  text-decoration: none;
}

.text-center a:hover {
  color: #2b2b2e;
  /* hover’da koyu gri */
  text-decoration: underline;
  opacity: 0.9;
}

/* Kırılımlar */
@media (max-width: 1200px) {
  .content {
    gap: 0;
  }
}

/* Mobil ve küçük ekranlar: sadece form göster */
@media (max-width: 1024px) {
  .content-right {
    display: none;
    /* Sağ kısmı gizle */
  }

  .content-left {
    flex: 1 1 100%;
    /* Form tam genişlikte */
    min-height: 100dvh;
    /* Ekran boyuna yayılır */
  }
}

/* Daha büyük ekranlarda sağ taraf tekrar gelsin */
@media (min-width: 1025px) {
  .content-right {
    display: flex;
  }
}

.password-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.password-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  font-weight: bold;
  color: black;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  transform: rotate(90deg);
  color: #ff6b6b;
}

.modal-header {
  text-align: center;
  margin-bottom: 35px;
}

.modal-header h2 {
  color: black;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-header p {
  color: rgba(26, 25, 25, 0.9);
  font-size: 14px;
  margin: 0;
}

.modal-field-group {
  margin-bottom: 25px;
}

.modal-label {
  display: block;
  color: black;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.modal-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(11, 11, 11, 0.3);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
  box-sizing: border-box;
  border-color: black;

}

.modal-input:focus {
  outline: none;
  border-color: black;
  background: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.modal-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #0b0b0b 0%, #090909 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-btn:hover {
  transform: translateY(-3px);
}

.modal-btn:active {
  transform: translateY(-1px);
}

.password-strength {
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  background: #4caf50;
  transition: all 0.3s ease;
}

/* SweetAlert2 custom z-index to appear above password modal */
.swal-high-zindex {
  z-index: 10001 !important;
}