/* Giriş sayfası — modern, bağımsız katman (app.css üzerine) */
.login-body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

/* Logo varken görünür başlık yok; ekran okuyucular için */
.login-card__sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(24, 178, 75, 0.18), transparent 50%),
    radial-gradient(ellipse 80% 60% at -10% 110%, rgba(16, 120, 72, 0.12), transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(24, 178, 75, 0.06), transparent 60%),
    linear-gradient(165deg, #f8fafc 0%, #eef2f7 45%, #e8edf3 100%);
}

.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2318B24B' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.login-main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.login-main .toast {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: min(420px, calc(100% - 32px));
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 2.25rem 1.75rem 2rem;
  box-shadow:
    0 32px 64px -24px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}

@media (min-width: 480px) {
  .login-card {
    padding: 2.5rem 2.25rem 2.25rem;
  }
}

.login-card__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #18b24b 0%, #129040 55%, #0d7a36 100%);
  box-shadow:
    0 12px 28px -8px rgba(24, 178, 75, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-card__logo svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

/* Özel logo: çerçeve yok, orantılı iyi boyut */
.login-card__logo--image {
  width: auto;
  max-width: min(280px, 100%);
  min-height: 0;
  height: auto;
  margin-bottom: 1.25rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.login-card__logo--image .login-card__logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 96px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  vertical-align: top;
}

@media (min-width: 400px) {
  .login-card__logo--image .login-card__logo-img {
    max-height: 112px;
    max-width: 300px;
  }

  .login-card__logo--image {
    max-width: 300px;
  }
}

.login-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.login-card__sub {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
}

/* Hızlı giriş */
.login-quick {
  margin-bottom: 1.5rem;
}

.login-quick__title {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  text-align: center;
}

.login-quick__hint {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #cbd5e1;
}

.login-quick__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 380px) {
  .login-quick__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

.login-quick__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.75rem 0.5rem;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.login-quick__btn:hover {
  border-color: rgba(24, 178, 75, 0.45);
  box-shadow: 0 4px 14px rgba(24, 178, 75, 0.12);
  color: #129040;
}

.login-quick__btn:active {
  transform: scale(0.98);
}

.login-quick__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  filter: grayscale(0.15);
}

.login-quick__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.login-quick__form {
  margin: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.login-divider span {
  white-space: nowrap;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.login-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.login-field__input {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: #0f172a;
  background: #fafbfc;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.login-field__input::placeholder {
  color: #94a3b8;
}

.login-field__input:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.login-field__input:focus {
  outline: none;
  border-color: #18b24b;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(24, 178, 75, 0.15);
}

.login-submit {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #1fc458 0%, #18b24b 55%, #159c42 100%);
  box-shadow:
    0 4px 14px rgba(24, 178, 75, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}

.login-submit:hover {
  box-shadow:
    0 8px 24px rgba(24, 178, 75, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-submit:active {
  transform: translateY(1px);
}

.login-auth-extra {
  margin: 0;
  text-align: center;
}

.login-auth-extra__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #129040;
  text-decoration: none;
}

.login-auth-extra__link:hover {
  text-decoration: underline;
  color: #0d7a36;
}

.login-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Şifre sıfırlama akışı */
.auth-flow-card {
  max-width: 440px;
}

.auth-flow-title {
  margin: 0.35rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
  text-align: center;
}

.auth-flow-deliverability {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
  text-align: center;
}

.auth-flow-deliverability strong {
  color: #475569;
  font-weight: 600;
}

.auth-flow-deliverability--meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.login-field__hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.auth-flow-nav {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.auth-flow-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.auth-flow-nav__link:hover {
  color: #129040;
}

.auth-flow-nav__link svg {
  flex-shrink: 0;
}

.auth-flow-nav__link--solo {
  margin-top: 0.75rem;
}

.auth-state {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.auth-state--muted .auth-state__icon {
  color: #94a3b8;
}

.auth-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.auth-state__icon svg {
  stroke-width: 1.25;
}

.auth-state__text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.auth-state__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.auth-state__btn {
  min-width: 200px;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .login-quick__btn,
  .login-submit,
  .login-field__input {
    transition: none;
  }
}
