:root {
  --blue-900: #0c1a3a;
  --blue-800: #1e3a5f;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  
  --white: #ffffff;
  --red-500: #ef4444;
  --red-50: #fef2f2;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-50: #f0fdf4;
  
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-100);
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  min-height: 100vh;
  color: var(--gray-900);
  line-height: 1.5;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.form-container {
  width: 100%;
  max-width: 520px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-placeholder img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.logo-text h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Kurumsal Uyar覺 Notu */
.info-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--amber-50) 0%, var(--amber-100) 100%);
  border: 2px solid var(--amber-500);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.info-notice-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--amber-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.info-notice-icon svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.info-notice-content {
  flex: 1;
}

.info-notice-content strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber-600);
  margin-bottom: 4px;
}

.info-notice-content p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
  margin: 0;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-700);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-id {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

.form-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.card-header {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.card-header h1 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
}

.card-header p {
  color: var(--blue-100);
  font-size: 13px;
  opacity: 0.9;
  position: relative;
}

.form-body {
  padding: 24px;
}

.form-section {
  margin-bottom: 20px;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-100);
}

.section-title svg {
  width: 14px;
  height: 14px;
}

.section-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 20px 0;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

.form-label.required::after {
  content: ' *';
  color: var(--red-500);
  font-weight: 700;
}

.form-hint {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

.form-input,
.form-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.form-input:hover,
.form-select:hover {
  border-color: var(--gray-400);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.phone-wrapper {
  display: flex;
  align-items: stretch;
}

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-300);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
}

.phone-wrapper .form-input {
  border-radius: 0 8px 8px 0;
}

.form-group.error .form-input,
.form-group.error .form-select {
  border-color: var(--red-500);
  background: var(--red-50);
}

.form-group.error .form-input:focus,
.form-group.error .form-select:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.error-message {
  display: none;
  font-size: 11px;
  color: var(--red-500);
  font-weight: 500;
  margin-top: 2px;
}

.form-group.error .error-message {
  display: block;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1.5px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-primary.loading .btn-text {
  opacity: 0;
}

.btn-primary .spinner {
  display: none;
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-primary.loading .spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alert Banners */
.alert-banner {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.alert-banner.show {
  display: flex;
  animation: slideIn 0.4s ease;
}

.alert-banner.success {
  background: linear-gradient(135deg, var(--green-50) 0%, #dcfce7 100%);
  border: 2px solid var(--green-500);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.alert-banner.error {
  background: linear-gradient(135deg, var(--red-50) 0%, #fee2e2 100%);
  border: 2px solid var(--red-500);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.alert-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-banner.success .alert-icon {
  background: var(--green-500);
}

.alert-banner.error .alert-icon {
  background: var(--red-500);
}

.alert-icon svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.alert-content strong {
  font-size: 15px;
  font-weight: 700;
}

.alert-banner.success .alert-content strong {
  color: #166534;
}

.alert-banner.error .alert-content strong {
  color: #991b1b;
}

.alert-content span {
  font-size: 13px;
  line-height: 1.4;
}

.alert-banner.success .alert-content span {
  color: #15803d;
}

.alert-banner.error .alert-content span {
  color: #b91c1c;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
}

/* MODAL STYLES (YENİ EKLENEN) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 26, 58, 0.75); /* Kurumsal koyu mavi tonu */
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-wrapper {
  width: 100%;
  max-width: 400px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-wrapper {
  transform: scale(1);
}

.modal-content {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  border: 1px solid var(--gray-200);
}

.modal-icon-box {
  width: 64px;
  height: 64px;
  background: var(--green-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--green-600);
  border: 4px solid var(--green-500); /* İkon çerçevesi */
  box-shadow: 0 0 0 4px var(--green-50); /* Dış halka efekti */
}

.modal-icon-box svg {
  width: 32px;
  height: 32px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.modal-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-text strong {
  color: var(--blue-700);
}

.modal-note {
  font-size: 12px;
  background: var(--amber-50);
  color: var(--amber-600);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
  border: 1px dashed var(--amber-500);
}

.btn-modal-close {
  width: 100%;
  font-size: 15px;
  background: var(--blue-800);
}

.btn-modal-close:hover {
  background: var(--blue-900);
}