* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
    /* Daha canlı yeşil tonları ve temiz bir krem geçişi */
    background: linear-gradient(135deg, 
        #1e3d1e 0%,    /* Derin Orman Yeşili */
        #3a5a3a 35%,   /* Canlı Çimen Yeşili */
        #5b8c5b 70%,   /* Parlak Yaprak Yeşili */
        #e8ecd1 100%   /* Temiz Fildişi/Bej */
    );

    /* Alternatif: Daha fazla derinlik istersen bu canlı sürümü de deneyebilirsin:
    background: radial-gradient(circle at center, #4c6b4c 0%, #1a2e1a 100%); */

    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    position: relative;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
}

/* Arka plana hafif bir ışık efekti ekleyerek canlılığı pekiştirelim */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Hafif tarla dokusu */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.15) 1px,
      transparent 1px
    ),
    linear-gradient(135deg, rgba(80, 100, 70, 0.15), rgba(200, 210, 180, 0.1));
  background-size:
    80px 80px,
    100% 100%;
  opacity: 0.4;
  mix-blend-mode: overlay;
}
/* === KONTEYNER === */
.login-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

/* === GERİ DÖN BUTONU === */
.back-btn {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 10px 22px;
  background: rgba(85, 110, 85, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(50, 60, 45, 0.3);
  z-index: 10;
}
.back-btn:hover {
  background: rgba(120, 150, 120, 0.8);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 25px rgba(70, 90, 65, 0.4);
}
.back-btn i {
  color: #fff;
  font-size: 18px;
}

/* === KART === */
.card {
  width: 100%; /* Sabit px yerine konteynere uyumlu yapıldı */
  max-width: 450px;
  height: 680px; /* Kayıt formundaki fazla inputlar için boy uzatıldı */
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  border-radius: 20px;
  background: linear-gradient(145deg, #f1eee5, #e3e0d4);
  box-shadow: 0 20px 45px rgba(40, 55, 40, 0.25);
}
.card.flipped {
  transform: rotateY(180deg);
}

/* === KART YÜZLERİ === */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-front,
.card-back {
  background: linear-gradient(145deg, #f1eee5 0%, #e3e0d4 100%);
}
.card-back {
  transform: rotateY(180deg);
}

/* === BAŞLIK === */
.card h2 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 35px;
  color: #344233;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.4);
}

/* === INPUT === */
.input-group {
  position: relative;
  margin-bottom: 25px;
}
.input-group input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(100, 100, 80, 0.2);
  border-radius: 12px;
  font-size: 16px;
  color: #2b2a26;
  outline: none;
  transition: all 0.3s ease;
}
.input-group input:focus {
  border-color: #6a8a5f;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(90, 130, 90, 0.3);
  transform: translateY(-2px);
}
.input-group input::placeholder {
  color: rgba(60, 60, 50, 0.6);
}
.input-group i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: rgba(70, 80, 60, 0.5);
}

/* === BUTON === */
.btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    135deg,
    #4caf50 0%,
    #388e3c 100%
  ); /* Ana tema yeşili */
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}
.btn:hover {
background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 150, 100, 0.4);
}

/* === ALT METİN === */
.switch-text {
  text-align: center;
  margin-top: 25px;
  color: rgba(60, 60, 50, 0.8);
  font-size: 14.5px;
}
.switch-text a {
color: #388e3c;
  text-decoration: none;
  font-weight: 600;
}
.switch-text a:hover {
  color: #81a374;
  text-decoration: underline;
}

/* Arka Plan */
body {
    background: linear-gradient(135deg, #1e3d1e 0%, #3a5a3a 35%, #5b8c5b 70%, #e8ecd1 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    perspective: 1000px;
}

/* Onay Kutuları */
.policy-group {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.policy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.policy-item input { display: none; }

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #000; /* Siyah çerçeve */
    background: #fff;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

input:checked + .checkmark {
    background: #4caf50;
    border-color: #4caf50;
}

input:checked + .checkmark::after {
    content: '✔';
    color: #fff;
    position: absolute;
    left: 3px; top: -2px;
}

/* MAVİ YAZI ÇÖZÜMÜ */
.policy-text { font-size: 13px; color: #333; }
.policy-text a {
    color: #4caf50 !important; /* Yeşil link */
    text-decoration: underline;
    font-weight: 600;
}

/* Modal Katmanı */
.full-policy-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Daha büyük ve ferah modal penceresi */
.modal-window {
    background: #fff;
    width: 95%; /* Ekranın %95'ini kullanabilir */
    max-width: 850px; /* Maksimum genişliği artırdık */
    max-height: 90vh; /* Yüksekliği %90'a çıkardık */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-header-bar {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.modal-scroll-area {
    padding: 40px; /* İç boşluğu artırdık */
    overflow-y: auto;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.modal-action-bar {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}

.accept-btn-wide {
    width: 100%;
    padding: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}