/**
 * Giriş ekranı — mobil öncelikli, yumuşak SaaS görünümü
 * Palet: yeşil #4CAF50, arka plan #F8F9FA, vurgu #FFB74D, metin koyu gri
 */

:root {
  --color-primary: #4caf50;
  --color-primary-hover: #43a047;
  --color-primary-soft: rgba(76, 175, 80, 0.12);
  --color-accent: #ffb74d;
  --color-bg: #f8f9fa;
  --color-card: #ffffff;
  --color-text: #37474f;
  --color-text-muted: #78909c;
  --color-border: #eceff1;
  --shadow-soft: 0 4px 24px rgba(55, 71, 79, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Logo, uyarı kutusu ve giriş kartı aynı genişlikte */
  --auth-stack-max: 520px;
}

@media (min-width: 480px) {
  :root {
    --auth-stack-max: 560px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 2rem;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(227, 242, 253, 0.65), transparent 55%),
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--color-primary-soft), transparent),
    var(--color-bg);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: var(--auth-stack-max);
}

/* Yatay logo: genişlik site kolonuyla hizalı, yükseklik orantılı */
.auth-brand__logo {
  width: min(94%, 260px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
}

@media (min-width: 400px) {
  .auth-brand__logo {
    width: min(92%, 300px);
  }
}

@media (min-width: 480px) {
  .auth-brand__logo {
    width: min(90%, 340px);
  }
}

@media (min-width: 560px) {
  .auth-brand__logo {
    width: min(var(--auth-stack-max), 380px);
  }
}

/* Güvenlik uyarı kutusu (bilgilendirme kartı) */
.auth-security {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.15rem;
  width: 100%;
  max-width: var(--auth-stack-max);
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (min-width: 480px) {
  .auth-security {
    padding: 1.5rem 1.6rem;
    gap: 1.25rem;
  }
}

.auth-security__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-security__icon svg {
  width: 60px;
  height: 60px;
  display: block;
}

@media (min-width: 480px) {
  .auth-security__icon,
  .auth-security__icon svg {
    width: 68px;
    height: 68px;
  }
}

.auth-security__body {
  flex: 1;
  min-width: 0;
}

.auth-security__title {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #212121;
  line-height: 1.3;
}

@media (min-width: 400px) {
  .auth-security__title {
    font-size: 1.2rem;
  }
}

@media (min-width: 480px) {
  .auth-security__title {
    font-size: 1.3rem;
  }
}

.auth-security__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: #263238;
  line-height: 1.6;
}

@media (min-width: 480px) {
  .auth-security__text {
    font-size: 0.9375rem;
  }
}

@media (max-width: 360px) {
  .auth-security {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .auth-security__body {
    text-align: left;
  }

}

.auth-card {
  width: 100%;
  max-width: var(--auth-stack-max);
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(236, 239, 241, 0.9);
}

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

.auth-card__head {
  margin-bottom: 1.5rem;
}

.auth-card__head h1 {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.auth-card__head p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.alert {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.alert--error {
  background: #fff3e0;
  color: #5d4037;
  border: 1px solid rgba(255, 183, 77, 0.45);
}

.alert--error svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  color: var(--color-accent);
}

.form-group {
  margin-bottom: 1.125rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
}

.form-group input::placeholder {
  color: #b0bec5;
}

.form-group input:hover:not(:disabled) {
  border-color: #cfd8dc;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.form-group input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  padding: 0 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

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

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(76, 175, 80, 0.35);
}

.btn--primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.btn--primary:active:not(:disabled) {
  transform: scale(0.98);
}

.auth-footnote {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.auth-footnote strong {
  color: var(--color-text);
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
