@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font: "Inter", system-ui, sans-serif;
  --auth-primary: #12E193;
  --auth-primary-dark: #0db876;
  --auth-dark: #030018;
}

* { box-sizing: border-box; }

body.auth-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #030018;
  color: #030018;
}

/* ── Left hero with video ── */
.auth-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
}

.auth-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 0, 24, 0.72) 0%, rgba(3, 0, 24, 0.92) 100%);
}

.auth-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px);
}

.auth-hero__content {
  max-width: 480px;
  padding-top: 0;
  width: 100%;
}

.auth-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(.8125rem, 1.2vw, .9375rem);
  line-height: 1.55;
  max-width: 440px;
}

.auth-features {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-feature__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #12E193;
}

.auth-feature__icon svg {
  width: 16px;
  height: 16px;
}

.auth-feature__text {
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.auth-hero__footer {
  color: rgba(255, 255, 255, 0.38);
  font-size: .75rem;
}

/* ── Right login panel ── */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  background: var(--bg, #f4f5f7);
}

.auth-card {
  position: relative;
  width: min(100%, 400px);
  background: #fff;
  border: 1px solid #e6e8ef;
  border-radius: 10px;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.auth-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--auth-primary);
}

.auth-card__company {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0;
  text-align: left;
}

.auth-card__company-logo {
  max-height: 44px;
  max-width: 160px;
  object-fit: contain;
}

.auth-card h2 {
  margin: 0 0 6px;
  color: #030018;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-card .subtitle {
  color: #98A2B3;
  margin: 0 0 16px;
  line-height: 1.5;
  font-size: .8125rem;
}

.auth-alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: .8125rem;
  font-weight: 600;
}

.auth-alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert.warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.auth-alert.success { background: #ecfdf5; color: #047857; border: 1px solid #bbf7d0; }

.auth-form .form-group { margin-bottom: 12px; }

.auth-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #030018;
  font-size: .8125rem;
}

.form-control {
  width: 100%;
  border: 1px solid #d5d9e2;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: .875rem;
  background: #fff;
  color: #030018;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.form-control::placeholder { color: #98A2B3; }

.form-control:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 2px rgba(18, 225, 147, 0.12);
}

.btn-login {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  margin-top: 4px;
  background: var(--auth-primary);
  color: #030018;
  font: inherit;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  box-shadow: none;
  transition: background .12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  background: var(--auth-primary-dark);
  transform: none;
}

.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  color: #98A2B3;
  font-size: .75rem;
  font-weight: 500;
}

/* ── Firma başvuru: geniş form düzeni ── */
body.auth-page--application {
  grid-template-columns: minmax(320px, 0.9fr) minmax(480px, 1.2fr);
}

body.auth-page--application .auth-panel {
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 3.5vw, 40px);
}

body.auth-page--application .auth-panel__inner {
  width: min(100%, 720px);
  max-width: none;
}

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

body.auth-page--application .auth-card__head {
  padding: 24px 32px 0;
}

body.auth-page--application .auth-card__body {
  padding: 20px 32px 28px;
  max-height: none;
  overflow: visible;
}

body.auth-page--application .auth-card__foot {
  padding: 14px 32px 20px;
}

body.auth-page--application .auth-card h2 {
  font-size: 1.375rem;
}

body.auth-page--application .auth-card .subtitle {
  font-size: .875rem;
  margin-bottom: 20px;
  max-width: 52ch;
}

.auth-card__badge--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.auth-form--application .auth-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.auth-form--application .form-group {
  margin-bottom: 0;
}

.auth-form--application .auth-form__full {
  grid-column: 1 / -1;
}

.auth-form--application .form-control {
  padding: 10px 12px;
}

.auth-form--application textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

.auth-form--application .btn-login {
  margin-top: 8px;
}

.auth-application-foot {
  margin-top: 16px;
  text-align: center;
  font-size: .8125rem;
  color: #667085;
}

.auth-application-foot a {
  color: var(--auth-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

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

.btn-login--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #f4f6f9;
  color: #030018;
  box-shadow: inset 0 0 0 1px #d5d9e2;
}

.btn-login--secondary:hover {
  background: #e9edf3;
}

.auth-hero--application .auth-hero__content {
  max-width: 520px;
}

.auth-hero--application .auth-hero__content h1 {
  max-width: none;
}

@media (max-width: 960px) {
  body.auth-page {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    display: flex;
    flex-direction: column;
  }

  .auth-hero {
    min-height: auto;
  }

  .auth-hero__inner {
    min-height: auto;
  }

  .auth-panel {
    align-items: stretch;
  }

  .form-control,
  .btn-login {
    font-size: 16px;
    min-height: 44px;
  }

  body.auth-page--application {
    grid-template-columns: 1fr;
  }

  body.auth-page--application .auth-panel {
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-left)) 20px max(16px, env(safe-area-inset-right));
    align-items: stretch;
  }

  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;
  }

  .auth-form--application .auth-form__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Mobile layout details → mobile-polish.css */

@media (prefers-reduced-motion: reduce) {
  .auth-hero__video {
    display: none;
  }

  .auth-hero__overlay {
    background: #030018;
  }
}
