/* =========================================================
   Auth Screen — split layout
   (Design token'lar ve reset için bkz. base.css)
   ========================================================= */
.auth-screen {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---- Left brand panel ---- */
.auth-brand {
  position: relative;
  flex: 0 0 44%;
  max-width: 560px;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 65%, #0F3F8F 100%);
  color: #fff;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-brand__glow {
  position: absolute;
  top: -120px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 20, 62, 0.35) 0%, rgba(255, 20, 62, 0) 70%);
  pointer-events: none;
}

.auth-brand__glow::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
}

.auth-brand__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.auth-brand__title {
  font-size: 38px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.auth-brand__subtitle {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 400px;
  margin-bottom: 40px;
}

.auth-brand__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-brand__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.auth-brand__features i {
  font-size: 19px;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-brand__footer {
  padding-bottom: 32px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 1;
}

/* ---- Right form panel ---- */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--color-bg);
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

.auth-form-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-form-logo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1C2C45;
  border-radius: var(--radius-md);
  padding: 16px 26px;
}

.auth-form-logo__badge img {
  height: 38px;
  width: auto;
  display: block;
}

.auth-form-header {
  margin-bottom: 32px;
  text-align: center;
}

.auth-form-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.auth-form-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14.5px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* .form-alert artık base.css'te (her sayfa paylaşıyor) */

/* ---- Fields ---- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-ink);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 18px;
  color: var(--color-muted);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input-wrap input::placeholder {
  color: var(--color-muted);
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.form-field.has-error .input-wrap input {
  border-color: var(--color-accent);
}

.form-field.has-error .input-wrap input:focus {
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.field-error {
  font-size: 12.5px;
  color: var(--color-accent);
  font-weight: 600;
  min-height: 1px;
}

.input-toggle {
  position: absolute;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
}

.input-toggle:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ---- Row: remember + forgot ---- */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--color-ink-soft);
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
  transition: all .15s ease;
  flex-shrink: 0;
}

.checkbox__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.checkbox input:checked + .checkbox__box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox input:checked + .checkbox__box::after {
  opacity: 1;
}

/* .btn-primary ve .link-muted için bkz. base.css */
.auth-form .btn-primary { width: 100%; margin-top: 4px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .auth-brand { display: none; }
  .auth-form-panel { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .auth-form-panel { padding: 24px; }
}
