/* Giriş, şifre değiştirme, erişim reddi — kurumsal Pantone 282 / 137 */

.auth-layout {
  min-height: 100vh;
  min-height: 100dvh;
  background: #001428;
  color: var(--text);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: 1fr;
}

.auth-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  color: #fff;
  background:
    radial-gradient(900px 420px at -8% -40%, rgba(255, 199, 44, 0.2), transparent 52%),
    linear-gradient(165deg, #001428 0%, #002855 48%, #0a3a62 100%);
  border-bottom: 1px solid rgba(255, 199, 44, 0.28);
  overflow: hidden;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 18% 40%, #000 12%, transparent 72%);
  pointer-events: none;
}

.auth-brand__orb {
  position: absolute;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 199, 44, 0.28), transparent 64%);
  pointer-events: none;
}

.auth-brand__home {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.auth-brand__home:hover .auth-brand__title,
.auth-brand__home:focus-visible .auth-brand__title {
  color: var(--p137);
}

.auth-brand__logo-frame {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 199, 44, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.auth-brand__logo {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  border-radius: 50%;
}

.auth-brand__copy {
  min-width: 0;
}

.auth-brand__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 199, 44, 0.92);
}

.auth-brand__title {
  margin: 0;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  color: #fff;
}

.auth-brand__slogan,
.auth-brand__foot {
  display: none;
}

.auth-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 1.5rem 1rem 2rem;
  background:
    linear-gradient(180deg, #e8eef6 0%, var(--surface) 40%, var(--surface) 100%);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 26.5rem;
  background: #fff;
  border-radius: 1.15rem;
  padding: 1.65rem 1.35rem 1.4rem;
  border: 1px solid rgba(0, 40, 85, 0.07);
  box-shadow: 0 22px 50px rgba(0, 32, 70, 0.12);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--p137) 0%, #ffe08a 48%, var(--p137) 100%);
}

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

.auth-card__head .auth-card__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p282-muted);
}

.auth-card__title {
  margin: 0;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--p282);
  line-height: 1.2;
}

.auth-card__lead {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.auth-alert i {
  margin-top: 0.12rem;
  flex-shrink: 0;
}

.auth-alert--warning {
  color: #5c4308;
  background: #fff6db;
  border: 1px solid rgba(201, 151, 0, 0.35);
}

.auth-alert--info {
  color: #0c3a5e;
  background: #eef5fb;
  border: 1px solid rgba(0, 40, 85, 0.12);
}

.auth-alert--danger {
  color: #7a1c1c;
  background: #fdecec;
  border: 1px solid rgba(160, 40, 40, 0.2);
}

.auth-form .text-danger {
  display: block;
  margin-top: 0.3rem;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field .form-label {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--p282);
  margin-bottom: 0.35rem;
}

.auth-field__control {
  position: relative;
}

.auth-field__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--p282-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.auth-layout .auth-field .form-control {
  height: 2.85rem;
  padding-left: 2.45rem;
  border-radius: 0.7rem;
  border-color: rgba(0, 40, 85, 0.14);
  background: #f7f9fc;
}

.auth-layout .auth-field .form-control:focus {
  background: #fff;
  border-color: rgba(0, 40, 85, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.35);
}

.auth-layout .auth-field .form-control:-webkit-autofill,
.auth-layout .auth-field .form-control:-webkit-autofill:hover,
.auth-layout .auth-field .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f7f9fc inset;
  box-shadow: 0 0 0 1000px #f7f9fc inset;
}

.auth-field__control--password .form-control {
  padding-right: 3.1rem;
}

.auth-field__suffix {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.15rem;
  padding: 0;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--p282-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-field__suffix:hover,
.auth-field__suffix:focus-visible {
  color: var(--p282);
  background: rgba(0, 40, 85, 0.06);
}

.auth-field__hint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 1.15rem;
}

.auth-layout .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  border-color: rgba(0, 40, 85, 0.28);
}

.auth-layout .form-check-input:checked {
  background-color: var(--p282);
  border-color: var(--p282);
}

.auth-layout .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 199, 44, 0.4);
}

.auth-layout .form-check-label {
  font-size: 0.9rem;
  color: var(--text);
}

.auth-form__submit {
  height: 2.9rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.auth-form__submit i {
  margin-left: 0.4rem;
  font-size: 0.82rem;
}

.auth-card .login-captcha {
  margin-bottom: 1rem;
}

.auth-layout .login-captcha .form-label {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--p282);
}

.auth-layout .login-captcha .form-control {
  height: 2.85rem;
  border-radius: 0.7rem;
  border-color: rgba(0, 40, 85, 0.14);
  background: #f7f9fc;
}

.auth-layout .login-captcha .form-control:focus {
  background: #fff;
  border-color: rgba(0, 40, 85, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.35);
}

.auth-card .login-captcha__image-btn {
  border-radius: 0.7rem;
}

.auth-stage__back {
  font-size: 0.88rem;
}

.auth-stage__back a {
  color: var(--p282-light);
  text-decoration: none;
  font-weight: 600;
}

.auth-stage__back a:hover {
  color: var(--p282);
  text-decoration: underline;
}

.auth-card--status {
  text-align: center;
  padding-top: 1.9rem;
}

.auth-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--p137) 18%, #fff);
  color: var(--p282);
  font-size: 1.2rem;
}

@media (min-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(20rem, 0.92fr) minmax(26rem, 1.08fr);
  }

  .auth-brand {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2.4rem 2.6rem 2rem;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 199, 44, 0.18);
  }

  .auth-brand__orb {
    width: 28rem;
    height: 28rem;
    right: -8rem;
    bottom: -10rem;
    top: auto;
  }

  .auth-brand__logo-frame {
    width: 5.25rem;
    height: 5.25rem;
    margin-bottom: 1.35rem;
  }

  .auth-brand__logo {
    width: 4.1rem;
    height: 4.1rem;
  }

  .auth-brand__home {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .auth-brand__kicker {
    font-size: 0.72rem;
  }

  .auth-brand__title {
    font-size: 1.65rem;
    max-width: 16ch;
  }

  .auth-brand__slogan {
    display: block;
    margin: 0.85rem 0 0;
    max-width: 28ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .auth-brand__foot {
    display: block;
    margin-top: 2rem;
    font-size: 0.88rem;
  }

  .auth-brand__foot a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 600;
  }

  .auth-brand__foot a:hover,
  .auth-brand__foot a:focus-visible {
    color: var(--p137);
  }

  .auth-stage {
    padding: 2.5rem 1.5rem;
  }

  .auth-card {
    padding: 2.1rem 1.85rem 1.7rem;
  }

  .auth-card__title {
    font-size: 1.75rem;
  }

  .auth-stage__back {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-layout * {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .auth-card,
  .auth-brand,
  .auth-field__suffix {
    border: 1px solid CanvasText;
  }
}
