/* ================================================================
   Telefon/E-posta Doğrulama Modal CSS
   ================================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  overflow: hidden;
}

/* Modal Overlay */
.verification-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal Container */
.verification-modal-container {
  position: relative;
  width: 90%;
  max-width: 450px;
  z-index: 9999;
}

.verification-modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  overflow: hidden;
}

/* Standalone Page Styles */
.verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
/*  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
  z-index: 9998;
}

.verification-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  background: white;
  border-radius: 20px 20px 0 0;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Header */
.verification-header {
  background: linear-gradient(135deg, #325bee 0%, #2849d1 100%);
  color: white;
  padding: 40px 30px 30px;
  text-align: center;
  border-radius: 20px 20px 0 0;
}

.verification-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: white;
}

.verification-subtitle {
  font-size: 0.95rem;
  margin: 0 0 25px 0;
  opacity: 0.9;
  color: white;
}

.verification-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.verification-phone i {
  font-size: 1.2rem;
}

/* Body */
.verification-body {
  padding: 40px 30px 30px;
  background: white;
}

/* Kod Giriş Kutuları */
.verification-code-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.verification-code-input {
  width: 50px;
  height: 50px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.verification-code-input:focus {
  outline: none;
  border-color: #325bee;
  background: white;
  box-shadow: 0 0 0 3px rgba(50, 91, 238, 0.1);
  transform: scale(1.05);
}

.verification-code-input.filled {
  border-color: #325bee;
  background: white;
}

.verification-code-input.error {
  border-color: #dc3545;
  background: #fff5f5;
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Timer */
.verification-timer-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.verification-timer {
  position: relative;
  width: 120px;
  height: 120px;
}

.timer-circle {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-circle-bg {
  fill: none;
  stroke: #e9ecef;
  stroke-width: 6;
}

.timer-circle-progress {
  fill: none;
  stroke: #325bee;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  font-family: "Nunito", sans-serif;
}

.timer-text.warning {
  color: #ff9800;
}

.timer-text.danger {
  color: #dc3545;
}

/* Doğrula Butonu */
.verification-btn {
  width: 100%;
  padding: 15px;
  background: #e9ecef;
  color: #6c757d;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: "Nunito", sans-serif;
}

.verification-btn:not(:disabled) {
  background: #325bee;
  color: white;
  box-shadow: 0 5px 15px rgba(50, 91, 238, 0.3);
}

.verification-btn:not(:disabled):hover {
  background: #2849d1;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(50, 91, 238, 0.4);
}

.verification-btn:disabled {
  cursor: not-allowed;
}

.verification-btn i {
  font-size: 1.1rem;
}

/* Geri Dön Butonu */
.verification-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6c757d;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: "Nunito", sans-serif;
}

.verification-back:hover {
  color: #325bee;
  text-decoration: none;
}

.verification-back i {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 576px) {
  .verification-modal-container {
    width: 100%;
    max-width: 100%;
  }
  
  .verification-modal-content {
    border-radius: 20px 20px 0 0;
  }

  .verification-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    top: auto;
    bottom: 0;
    transform: translate(-50%, 0);
  }

  .verification-header {
    padding: 30px 20px 25px;
  }

  .verification-title {
    font-size: 1.5rem;
  }

  .verification-body {
    padding: 30px 20px 25px;
  }

  .verification-code-input {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .verification-timer {
    width: 100px;
    height: 100px;
  }

  .timer-text {
    font-size: 1.1rem;
  }
}

/* Loading State */
.verification-btn.loading {
  position: relative;
  color: transparent;
}

.verification-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Success State */
.verification-code-input.success {
  border-color: #28a745;
  background: #f0fff4;
}

/* Email Mode */
.verification-header.email-mode {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.verification-header.email-mode .verification-title::before {
  content: "E-posta ";
}

