/* Auth premium polish v2 */

.auth-panel__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(18, 225, 147, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(3, 0, 24, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.auth-card {
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(3, 0, 24, 0.04),
    0 12px 40px rgba(3, 0, 24, 0.08);
  border: 1px solid rgba(230, 232, 239, 0.9);
}

.auth-card__accent {
  height: 4px;
  background: linear-gradient(90deg, #12E193 0%, #0db876 55%, rgba(18, 225, 147, 0.35) 100%);
}

.auth-card__head {
  padding: 20px 24px 0;
}

.auth-card__body {
  padding: 16px 24px 20px;
}

.auth-card__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 24px 16px;
  border-top: 1px solid #eef0f4;
  font-size: .72rem;
  color: #98A2B3;
}

.auth-card__foot a {
  color: #0a7a52;
  font-weight: 600;
  text-decoration: none;
}

.auth-card__foot a:hover {
  text-decoration: underline;
}

.auth-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(18, 225, 147, 0.12);
  border: 1px solid rgba(18, 225, 147, 0.22);
  color: #0a7a52;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-card__system-brand,
.auth-card__company {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-card__company-logo-wrap,
.auth-card__system-brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #e6e8ef;
  background: #fff;
  padding: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-card__company-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #98A2B3;
  margin-bottom: 2px;
}

.auth-card__company-name,
.auth-card__system-brand strong {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: #030018;
  line-height: 1.3;
}

.auth-card__system-brand span {
  display: block;
  margin-top: 2px;
  font-size: .75rem;
  color: #98A2B3;
}

.auth-field {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__icon {
  position: absolute;
  left: 12px;
  color: #98A2B3;
  display: grid;
  pointer-events: none;
  z-index: 1;
}

.auth-field__input {
  padding-left: 40px !important;
  padding-right: 42px;
  min-height: 44px;
  border-radius: 10px !important;
  border-color: #dde1ea !important;
  background: #fafbfc !important;
}

.auth-field__input:focus {
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(18, 225, 147, 0.14) !important;
}

.auth-field__toggle {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98A2B3;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .12s ease, background .12s ease;
}

.auth-field__toggle:hover {
  color: #030018;
  background: #f1f3f6;
}

.auth-field__toggle.is-visible .auth-field__toggle-show {
  display: none;
}

.auth-field__toggle.is-visible .auth-field__toggle-hide {
  display: block !important;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 10px;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(18, 225, 147, 0.28);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.btn-login:hover {
  box-shadow: 0 6px 18px rgba(18, 225, 147, 0.34);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

/* Hero polish */
.auth-hero__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  left: -80px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(18, 225, 147, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.auth-hero__inner {
  justify-content: space-between;
}

.auth-hero__top {
  width: 100%;
  margin-bottom: 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand__logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-brand__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.auth-brand__text strong {
  display: block;
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
}

.auth-brand__text span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: .75rem;
}

.auth-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 225, 147, 0.14);
  border: 1px solid rgba(18, 225, 147, 0.28);
  color: #12E193;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-hero__bottom {
  width: 100%;
  margin-top: 28px;
}

.auth-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.auth-hero__stat {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.auth-hero__stat strong {
  display: block;
  color: #12E193;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
}

.auth-hero__stat span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: .68rem;
  line-height: 1.3;
}

.auth-panel__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
}

.auth-panel {
  position: relative;
  background: linear-gradient(160deg, #f7f8fa 0%, #eef1f5 100%);
}

.auth-page--admin .auth-card__badge,
.auth-page--agent .auth-card__badge {
  background: rgba(3, 0, 24, 0.06);
  border-color: rgba(3, 0, 24, 0.1);
  color: #030018;
}

.btn-login {
  position: relative;
  overflow: hidden;
}

.btn-login::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg);
}

.btn-login:hover::after {
  animation: authShine .75s ease;
}

@keyframes authShine {
  0% { left: -130%; }
  100% { left: 130%; }
}

@media (max-width: 960px) {
  .auth-hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-login::after { display: none; }
  .btn-login:hover { transform: none; }
}

/* Firma başvuru — geniş form (auth.css sonrası, premium öncelikli) */
body.auth-page--application {
  grid-template-columns: minmax(300px, 0.85fr) minmax(520px, 1.35fr);
}

body.auth-page--application .auth-panel {
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 48px);
}

body.auth-page--application .auth-panel__inner {
  width: 100%;
  max-width: 820px;
}

body.auth-page--application .auth-card {
  width: 100%;
  max-width: none;
}

body.auth-page--application .auth-card__head {
  padding: 26px 36px 0;
}

body.auth-page--application .auth-card__body {
  padding: 22px 36px 30px;
}

body.auth-page--application .auth-card__foot {
  padding: 16px 36px 22px;
}

body.auth-page--application .auth-form--application .auth-form__grid {
  gap: 20px 24px;
}

@media (max-width: 960px) {
  body.auth-page--application {
    grid-template-columns: 1fr;
  }

  body.auth-page--application .auth-panel__inner {
    max-width: none;
  }

  body.auth-page--application .auth-card__head,
  body.auth-page--application .auth-card__body,
  body.auth-page--application .auth-card__foot {
    padding-left: 20px;
    padding-right: 20px;
  }
}
