/* ═══════════════════════════════════════════════════════
   Giriş / Kayıt — Premium Auth Experience
   ═══════════════════════════════════════════════════════ */

.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #eceef2;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.45) 0%, transparent 28%);
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38,48,72,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,48,72,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.4;
}

.auth-loading {
  color: #6366f1;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 44px 40px 40px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 60px rgba(15, 23, 42, 0.1);
  animation: authFadeUp 0.45s ease-out both;
}

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1a2234;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 32px;
}

.auth-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #1a2234;
  line-height: 1.2;
}

.auth-desc {
  font-size: 14px;
  color: #64748b;
  margin-top: 8px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Form controls — scoped so auth works without foundation.css */
.auth-page .ui-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.auth-page .ui-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(38, 48, 72, 0.12);
  font-size: 14px;
  color: #1a2234;
  background: rgba(236, 240, 247, 0.55);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-page .ui-input::placeholder {
  color: #94a3b8;
}

.auth-page .ui-input:focus {
  border-color: #6366f1;
  background: rgba(236, 240, 247, 0.85);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-page .ui-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.auth-page .ui-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.auth-page .ui-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-submit {
  margin-top: 4px;
}

.auth-error {
  font-size: 13px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.4;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-demo-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(236, 240, 247, 0.5);
  border: 1px dashed rgba(38, 48, 72, 0.18);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.auth-demo:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
}

.auth-demo:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-demo--agency {
  border-style: solid;
  border-color: rgba(99, 102, 241, 0.25);
  background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, rgba(236,240,247,0.5) 100%);
}

.auth-demo--client {
  border-style: solid;
  border-color: rgba(139, 92, 246, 0.25);
  background: linear-gradient(180deg, rgba(139,92,246,0.08) 0%, rgba(236,240,247,0.5) 100%);
}

.auth-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(38, 48, 72, 0.08);
  font-size: 14px;
  color: #64748b;
}

.auth-footer a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error--prominent {
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px 28px;
    border-radius: 20px;
  }

  .auth-card h1 {
    font-size: 24px;
  }
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

.auth-page .animate-spin {
  animation: authSpin 1s linear infinite;
}
