/* ================================================================
   YÜKSEK UÇUŞ - LOGIN.CSS
   Giriş Sayfası Stilleri
   ================================================================ */

/* ==================== DEĞİŞKENLER ==================== */
:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.1s ease;
  --transition-normal: 0.2s ease;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #0a0b0c;
  color: #eeeef2;
}

/* ==================== ANA LAYOUT ==================== */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ==================== SOL PANEL ==================== */
.login-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl);
  background: linear-gradient(135deg, #111118 0%, #1a1a24 100%);
  border-right: 1px solid #2a2a38;
}

.login-brand {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.login-subtitle {
  font-size: 14px;
  color: #9595a8;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 320px;
  margin: 0 auto;
}

.login-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.login-feature strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.login-feature p {
  font-size: 12px;
  color: #9595a8;
}

/* ==================== SAĞ PANEL ==================== */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: #0c0c14;
}

/* ==================== GİRİŞ KARTI ==================== */
.login-card {
  width: 100%;
  max-width: 400px;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: #18181f;
  border: 1px solid #2a2a38;
  box-shadow: var(--shadow-lg);
}

.login-card-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.login-card-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.login-card-header p {
  font-size: 13px;
  color: #9595a8;
}

/* ==================== FORM ==================== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: #9595a8;
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-md);
  border: 1px solid #2a2a38;
  border-radius: var(--radius-sm);
  background: #1f1f2a;
  color: #eeeef2;
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.input:focus {
  border-color: #206bc4;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15);
  background: #252532;
}

.input::placeholder {
  color: #5c5c70;
}

/* Şifre girdisi */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper .input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #9595a8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: #eeeef2;
}

/* ==================== HATA MESAJI ==================== */
.login-error {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: rgba(224, 49, 49, 0.1);
  border: 1px solid rgba(224, 49, 49, 0.3);
  color: #e03131;
  font-size: 13px;
  font-weight: 500;
}

/* ==================== BUTON ==================== */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: #206bc4;
  color: #fff;
  border-color: #206bc4;
}

.btn-primary:hover:not(:disabled) {
  background: #3a8ae8;
  border-color: #3a8ae8;
}

.btn-block {
  width: 100%;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ==================== FOOTER ==================== */
.login-footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid #2a2a38;
}

.login-footer p {
  font-size: 13px;
  color: #9595a8;
  margin-bottom: var(--space-xs);
}

.login-link {
  color: #206bc4;
  font-weight: 600;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  background: #18181f;
  border: 1px solid #2a2a38;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid #2a2a38;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid #2a2a38;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #9595a8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  border-color: #e03131;
  color: #e03131;
}

.modal-body {
  padding: var(--space-md);
}

.modal-text {
  font-size: 13px;
  color: #9595a8;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid #2a2a38;
}

.btn-ghost {
  color: #9595a8;
  background: transparent;
  border-color: #2a2a38;
}

.btn-ghost:hover:not(:disabled) {
  color: #eeeef2;
  background: rgba(255, 255, 255, 0.05);
  border-color: #3a3a50;
}

/* ==================== TOAST ==================== */
.toast-container {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 400px;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: #18181f;
  border: 1px solid #2a2a38;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  animation: slideInRight 0.25s ease both;
  pointer-events: auto;
}

.toast-success { border-left: 3px solid #2f9e44; }
.toast-danger { border-left: 3px solid #e03131; }
.toast-warning { border-left: 3px solid #f08c00; }
.toast-info { border-left: 3px solid #206bc4; }

.toast-content { flex: 1; }
.toast-title { font-size: 13px; font-weight: 700; }
.toast-message { font-size: 12px; color: #9595a8; margin-top: 2px; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-left {
    display: none;
  }

  .login-right {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: var(--space-md);
  }
}
