/* --- register.css - NAVBAR COLOR FIXED V2 --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* SIFIRLAMA */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* RENK DEĞİŞKENLERİ (Style.css ile Eşitlendi) */
:root {
    --acc-bg0: #1e3a5f; /* Anasayfa ile aynı Canlı Mavi */
    --acc-bg1: #0a1929; /* Anasayfa ile aynı Koyu Lacivert */
}

body {
    /* Anasayfa ile aynı Radial Gradient kullanıldı -> Navbar rengi düzelir */
    background: radial-gradient(circle at 50% 20%, var(--acc-bg0) 0%, var(--acc-bg1) 100%);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* ARKA PLAN DEKORU (Performanslı) */
/* Navbar'ın arkasını bozmayacak şekilde biraz aşağıdan başlattım */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(at 20% 80%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(124, 58, 237, 0.15) 0px, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ANA KAPLAYICI */
.register-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* KART TASARIMI */
.glass-card {
    width: 100%;
    max-width: 450px; 
    /* Kart rengi style.css kartlarıyla uyumlu hale getirildi */
    background: #111c2e; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 30px; 
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* HEADER */
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo { height: 42px; width: auto; margin-bottom: 12px; }
.auth-title { font-size: 24px; font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.5px; }
.auth-desc { font-size: 14px; color: #94a3b8; margin-top: 6px; }

/* INPUT ALANLARI */
.form-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.input-group { margin-bottom: 12px; width: 100%; }

.auth-input {
    width: 100%;
    background: #0f172a; 
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #3b82f6;
    background: #0b1120;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* CHECKBOX ALANI */
.check-area { 
    margin: 18px 0; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.custom-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    position: relative;
    line-height: 1.5;
}

.custom-label input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

.checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    min-width: 18px;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: 0.2s;
    margin-top: 2px;
}

.custom-label:hover .checkmark { border-color: #60a5fa; }
.custom-label input:checked ~ .checkmark { background-color: #3b82f6; border-color: #3b82f6; }

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px; top: 2px;
    width: 4px; height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.custom-label input:checked ~ .checkmark:after { display: block; }
.custom-label a { color: #60a5fa; text-decoration: none; font-weight: 600; transition: .2s; }
.custom-label a:hover { color: #93c5fd; text-decoration: underline; }

/* BUTON */
.btn-submit {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4); }

/* FOOTER & UYARI */
.auth-footer { text-align: center; font-size: 14px; color: #94a3b8; }
.auth-footer a { color: #fff; font-weight: 600; text-decoration: none; transition: .2s; }
.auth-footer a:hover { color: #60a5fa; }

.alert-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #93c5fd;
    display: flex; gap: 10px; align-items: center;
}

/* --- MOBİL İÇİN ÖZEL AYARLAR --- */
@media (max-width: 480px) {
    .register-wrapper {
        align-items: center;
        padding: 15px;
    }

    .glass-card {
        max-width: 100%;
        padding: 24px 20px;
        margin: 0;
        border-radius: 16px;
    }

    .form-grid { gap: 10px; }

    .auth-input {
        padding: 12px;
        font-size: 14px;
    }

    .auth-title { font-size: 22px; }
    .auth-logo { height: 36px; }

    .btn-submit { padding: 14px; font-size: 14px; }
}

/* =========================================
   ✅ AUTH LOGO CENTER FIX (LOGIN / REGISTER)
   - Logo'nun sol üste kaymasını kesin çözer
========================================= */

/* auth-header kesin merkez */
.register-wrapper .glass-card .auth-header{
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* <a> bazen absolute oluyor -> resetle */
.register-wrapper .glass-card .auth-header > a{
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  width: 100% !important;
  margin: 0 auto 12px auto !important;

  transform: none !important;
  float: none !important;
}

/* img kesin ortalansın */
.register-wrapper .glass-card .auth-header > a > img,
.register-wrapper .glass-card .auth-logo{
  position: static !important;
  display: block !important;
  margin: 0 auto !important;

  height: 46px !important;
  width: auto !important;
  max-width: 160px !important;

  object-fit: contain !important;

  transform: none !important;
  float: none !important;
}

@media (max-width: 575px){
  .register-wrapper .glass-card .auth-header > a > img,
  .register-wrapper .glass-card .auth-logo{
    height: 40px !important;
    max-width: 140px !important;
  }
}

