/* Auth sayfalarına özel stiller. style.css ile çakışmayı önlemek için sınırlandırılmıştır. */

.auth-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 700px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(13,27,110,0.06);
  overflow: hidden;
  margin: 2rem;
}

.auth-wrapper-center {
  justify-content: center;
  align-items: center;
  background: transparent;
  box-shadow: none;
  min-height: auto;
}

/* Sol Panel (Görsel ve Bilgi) */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #0d1b6e 0%, #1a3a8f 60%, #0f4c81 100%);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-brand img {
  height: 40px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.auth-left-content {
  position: relative;
  z-index: 2;
}

.auth-left-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,201,167,0.15);
  border: 1px solid rgba(0,201,167,0.4);
  color: #00e5be;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.auth-left h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff !important;
}

.auth-left h1 span {
  color: #00e5be !important;
}

.auth-left p {
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Özellik Adımları */
.auth-features, .auth-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-feature-item, .auth-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.auth-feat-icon, .step-num {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e5be;
  font-weight: bold;
  flex-shrink: 0;
}

.step-num {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
}

.step-num.active {
  background: #00c9a7;
  border-color: #00c9a7;
}

.auth-step-line {
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin-left: 19px;
}

.auth-trust-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.trust-badge {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
}

.auth-left-footer {
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Sağ Panel (Form) */
.auth-right {
  flex: 1.1;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.auth-card {
  width: 100%;
  max-width: 460px;
}

.auth-card-header {
  margin-bottom: 2.5rem;
}

.auth-card-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0d1b6e;
  margin-bottom: 0.5rem;
}

.auth-card-header p {
  color: #4a5568;
}

/* Form Tasarımı */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0d1b6e;
  display: flex;
  justify-content: space-between;
}

.form-label-link {
  color: #00a88a;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8898aa;
  font-size: 1.1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  color: #0d1b6e;
}

.input-wrapper input:focus {
  border-color: #00c9a7;
  box-shadow: 0 0 0 4px rgba(0, 201, 167, 0.1);
}

.input-toggle-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #8898aa;
}

/* Telefon Giriş Prefix */
.telefon-wrapper {
  display: flex;
  align-items: center;
}

.telefon-prefix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-right: none;
  border-radius: 12px 0 0 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0d1b6e;
}

.telefon-wrapper input {
  border-radius: 0 12px 12px 0 !important;
  padding-left: 1rem !important;
}

.whatsapp-icon {
  position: absolute;
  right: 1rem;
  color: #25D366;
  font-size: 1.2rem;
}

.input-hint {
  font-size: 0.78rem;
  color: #8898aa;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.match-hint.success { color: #22c55e; }
.match-hint.error { color: #ef4444; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Şifre Gücü */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s;
}

.strength-label {
  font-size: 0.75rem;
  color: #8898aa;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #4a5568;
  cursor: pointer;
  position: relative;
}

.btn-auth {
  background: #00c9a7;
  color: #fff;
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 201, 167, 0.25);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-auth:hover:not(:disabled) {
  background: #00a88a;
  box-shadow: 0 6px 20px rgba(0, 201, 167, 0.35);
}

.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #8898aa;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider::before { margin-right: .5em; }
.auth-divider::after { margin-left: .5em; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #20ba5a;
}

.auth-footer-text {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #4a5568;
}

.auth-footer-text a {
  color: #00a88a;
  font-weight: 700;
}

/* Doğrulama Kartı */
.verify-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(13,27,110,0.06);
  padding: 3.5rem;
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.verify-logo img {
  height: 36px;
  margin-bottom: 2rem;
}

.verify-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.verify-icon {
  width: 80px;
  height: 80px;
  background: #e8fbf7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
}

.verify-ripple {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.1;
  animation: pulse 2s infinite;
  z-index: 1;
}

.verify-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0d1b6e;
  margin-bottom: 0.75rem;
}

.verify-desc {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.otp-input-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
}

.otp-box {
  width: 50px;
  height: 60px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: all 0.2s;
  color: #0d1b6e;
}

.otp-box:focus {
  border-color: #00c9a7;
  box-shadow: 0 0 0 4px rgba(0, 201, 167, 0.1);
}

.otp-dash {
  color: #8898aa;
  font-size: 1.2rem;
}

.otp-resend {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #4a5568;
}

.resend-link {
  color: #00a88a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.verify-wa-hint {
  margin-top: 2rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #4a5568;
  text-align: left;
  line-height: 1.5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: #8898aa;
  font-weight: 600;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #0d1b6e;
}

.auth-alert {
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
  line-height: 1.4;
}

.auth-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.auth-alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 992px) {
  .auth-left { display: none; }
  .auth-wrapper { max-width: 550px; }
  .auth-right { padding: 3rem; }
}

@media (max-width: 576px) {
  .auth-wrapper { margin: 1rem; border-radius: 16px; }
  .auth-right { padding: 2rem 1.5rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .auth-card-header h2 { font-size: 1.5rem; }
  
  .verify-card { padding: 2rem 1.5rem; }
  .otp-input-group { gap: 0.35rem; }
  .otp-box { width: 42px; height: 52px; font-size: 1.2rem; }
}

@media (max-width: 400px) {
  .verify-card { padding: 1.5rem 1rem; }
  .otp-input-group { gap: 0.2rem; }
  .otp-box { width: 36px; height: 48px; font-size: 1.1rem; border-radius: 8px; }
  .otp-dash { font-size: 1rem; }
}

@media (max-width: 350px) {
  .otp-box { width: 32px; height: 44px; font-size: 1rem; }
}

