/*
 * Auth — Açık arka plan, ortalanmış form
 * Ana: #032f63 | İkincil: #9a1925
 */

/* ─── Sayfa ─── */
body.auth-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f0f4f8;
}

body.auth-page .container-xxl,
body.auth-page .authentication-wrapper,
body.auth-page .authentication-inner {
  all: unset;
  display: contents;
}

.authentication-wrapper.authentication-basic .authentication-inner:before,
.authentication-wrapper.authentication-basic .authentication-inner:after {
  display: none !important;
  content: none !important;
}

/* ─── Açık arka plan ─── */
.auth-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-scene__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, #f5f8fc 0%, #eef3f8 45%, #f8fafc 100%);
}

.auth-scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.auth-scene__glow--1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: rgba(3, 47, 99, 0.07);
}

.auth-scene__glow--2 {
  width: 400px;
  height: 400px;
  bottom: -120px;
  left: -80px;
  background: rgba(154, 25, 37, 0.05);
}

.auth-scene__glow--3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(3, 47, 99, 0.04);
}

/* ─── Ortalanmış layout ─── */
.auth-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

.auth-panel {
  width: 100%;
  max-width: 420px;
  animation: authFadeUp 0.5s ease both;
}

.auth-panel__logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-panel__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ─── Form kartı ─── */
.auth-form-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 1rem;
  box-shadow:
    0 1px 3px rgba(3, 47, 99, 0.04),
    0 12px 32px rgba(3, 47, 99, 0.08);
  overflow: hidden;
}

.auth-form-card .card-body {
  padding: 2.25rem 2rem;
}

.auth-form-card h4 {
  color: #032f63;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.auth-form-card .text-muted {
  color: #8a96a8 !important;
  font-size: 0.8125rem;
}

.auth-form-card .form-label {
  color: #1a2d42;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.auth-form-card .form-control {
  border-color: #dde4ec;
  border-radius: 0.5rem;
  padding: 0.65rem 0.875rem;
  background: #f8fafc;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-form-card .form-control:focus {
  background: #fff;
  border-color: #032f63;
  box-shadow: 0 0 0 3px rgba(3, 47, 99, 0.1);
}

.auth-form-card .btn-primary {
  background: linear-gradient(135deg, #032f63 0%, #024a96 100%);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(3, 47, 99, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-form-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(3, 47, 99, 0.35);
  background: linear-gradient(135deg, #024a96 0%, #032f63 100%);
}

.auth-form-card .btn-outline-secondary {
  border-color: #dde4ec;
  color: #5a6a7e;
  border-radius: 0.5rem;
}

.auth-form-card .btn-outline-secondary:hover {
  background: #f0f4f8;
  border-color: #c5cdd8;
  color: #032f63;
}

.auth-form-card a:not(.btn) {
  color: #032f63;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.875rem;
}

.auth-form-card a:not(.btn):hover {
  color: #9a1925;
}

.auth-form-card .form-check-input:checked {
  background-color: #032f63;
  border-color: #032f63;
}

.auth-form-card .alert {
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: none;
}

.auth-form-card .alert-success {
  background: #e8f5ee;
  color: #1a6b47;
}

.auth-form-card .alert-danger {
  background: #fce8ea;
  color: #9a1925;
}

.auth-form-card .alert-warning {
  background: #fef6e8;
  color: #8a6200;
}

/* ─── Alt bilgi ─── */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #8a96a8;
}

/* ─── Animasyon ─── */
@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ─── */
@media (max-width: 575.98px) {
  .auth-shell {
    padding: 1.25rem 1rem;
    align-items: flex-start;
    padding-top: 2.5rem;
  }

  .auth-form-card .card-body {
    padding: 1.75rem 1.25rem;
  }

  .auth-panel__logo img {
    height: 40px;
  }
}
