/* ── AUTH BODY ── */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(245,166,35,.08) 0%, transparent 60%);
  padding: 20px;
}

/* ── CARD ── */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #242424;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 28px;
}

/* ── HATA ── */
.auth-error {
  display: none;
  background: rgba(231,76,60,.12);
  border: 1px solid rgba(231,76,60,.3);
  color: #e74c3c;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.auth-error.show { display: block; }

/* ── GOOGLE BUTONU ── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #333;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-bottom: 20px;
}

.btn-google:hover {
  background: #f1f1f1;
  transform: translateY(-1px);
}

/* ── DIVIDER ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.auth-divider span {
  font-size: 12px;
  color: #555;
}

/* ── FORM ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  letter-spacing: .5px;
}

.form-group input {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #ddd;
  font-size: 13px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}

.form-group input:focus { border-color: #f5a623; }
.form-group input::placeholder { color: #444; }

/* ── PRIMARY BUTON ── */
.btn-primary {
  width: 100%;
  padding: 13px;
  background: #f5a623;
  color: #111;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 4px;
}

.btn-primary:hover { background: #e09510; transform: translateY(-1px); }
.btn-primary:disabled { background: #555; color: #888; cursor: not-allowed; transform: none; }

/* ── ALT NOTLAR ── */
.auth-note {
  font-size: 12px;
  color: #555;
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  transition: color .2s;
}

.auth-back:hover { color: #f5a623; }

/* ── KAYIT MODAL ── */
.register-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.register-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.register-modal {
  background: #242424;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  transform: translateY(20px);
  transition: transform .3s;
}
.register-overlay.open .register-modal {
  transform: translateY(0);
}
.register-modal-header {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.register-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}
.register-sub {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 24px;
}
.register-email-badge {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #f5a623);
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.register-back-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color .2s;
  font-family: inherit;
}
.register-back-btn:hover { color: #fff; }
.field-hint {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
  display: block;
}
.register-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(46,204,113,.15);
  border: 1px solid rgba(46,204,113,.3);
  color: #2ecc71;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.register-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: #f5a623;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 20px auto 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DAVETİYE MODAL ── */
.auth-invite-link {
  background: none;
  border: none;
  color: #f5a623;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.invite-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.invite-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.invite-modal {
  background: #242424;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  transform: translateY(16px);
  transition: transform .25s;
}

.invite-overlay.open .invite-modal {
  transform: translateY(0);
}

.invite-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.invite-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.invite-modal-header p {
  font-size: 12px;
  color: #666;
}

.invite-close {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.invite-close:hover { color: #fff; }

.invite-error {
  font-size: 12px;
  color: #e74c3c;
  min-height: 16px;
  margin-bottom: 12px;
}

.invite-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  text-align: center;
}

.invite-success span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(46,204,113,.15);
  border: 1px solid rgba(46,204,113,.3);
  color: #2ecc71;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-success p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}
