/**
 * Giriş / misafir sayfaları
 */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: linear-gradient(145deg, #1f4999 0%, #485ea8 52%, #d1d7e9 100%);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

@media (min-width: 640px) {
  .auth-page {
    padding: 1.75rem 1.5rem;
  }
}

.auth-page__bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.auth-page__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(64px);
}

.auth-page__orb--tr {
  top: -6rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
}

.auth-page__orb--bl {
  bottom: -8rem;
  left: -8rem;
  width: 31rem;
  height: 31rem;
  background: rgba(255, 255, 255, 0.06);
}

.auth-page__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
}

/* ─── Header ─── */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 1rem;
  padding: 0.875rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}

.auth-header__logo img {
  display: block;
  height: 3rem;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.auth-header__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.02em;
}

.auth-header__subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

/* ─── Card ─── */
.auth-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  box-shadow:
    0 20px 50px rgba(31, 73, 153, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

@supports (backdrop-filter: blur(16px)) {
  .auth-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

@media (min-width: 640px) {
  .auth-card {
    padding: 2.25rem 2rem;
  }
}

.auth-alert {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(254, 242, 242, 0.95);
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* ─── Form ─── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form .form-field {
  margin: 0;
}

.auth-form .form-label-lg {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.45rem;
}

.auth-form .form-control {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
}

.auth-form .form-control:focus {
  border-color: var(--brand-primary, #1f4999);
  box-shadow: 0 0 0 3px rgba(31, 73, 153, 0.14);
}

/* Tarayıcı :invalid kırmızı çerçevesini girişte kapat */
.auth-form .form-control:invalid {
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-form__submit {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.875rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-primary, #1f4999), var(--brand-secondary, #485ea8));
  box-shadow: 0 6px 20px rgba(31, 73, 153, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.auth-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(31, 73, 153, 0.38);
  filter: brightness(1.03);
}

.auth-form__submit:active {
  transform: translateY(0);
}

.auth-form__submit:focus-visible {
  outline: none;
  box-shadow:
    0 6px 20px rgba(31, 73, 153, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 0 0 5px rgba(31, 73, 153, 0.45);
}
