/* ShiftFlow v0.3 – Authentifizierung */
.auth-page {
  min-height: 100vh;
}

.auth-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  transition: color .18s ease;
}

.back-link:hover {
  color: white;
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 92px);
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 90px;
  padding-block: 46px 90px;
}

.auth-intro h1 {
  margin: 24px 0 22px;
  font-size: clamp(58px, 6vw, 88px);
  line-height: .96;
  letter-spacing: -.07em;
}

.auth-intro h1 em {
  display: block;
  color: transparent;
  font-style: normal;
  background: linear-gradient(95deg, var(--accent-a), var(--accent-b) 52%, var(--accent-c));
  background-clip: text;
  -webkit-background-clip: text;
}

.auth-intro > p {
  max-width: 600px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.72;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}

.auth-benefits article {
  display: flex;
  max-width: 520px;
  align-items: center;
  gap: 15px;
  padding: 15px 17px;
  border: 1px solid var(--surface-border);
  border-radius: 19px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
}

.auth-benefits article > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-b);
  background: rgba(255,255,255,.07);
  font-weight: 800;
}

.auth-benefits strong,
.auth-benefits small {
  display: block;
}

.auth-benefits strong {
  font-size: 14px;
}

.auth-benefits small {
  margin-top: 4px;
  color: var(--text-soft);
  line-height: 1.45;
}

.auth-card {
  width: min(100%, 530px);
  justify-self: end;
  padding: 28px;
  border: 1px solid var(--surface-border);
  border-radius: 34px;
  background: rgba(23, 24, 44, .76);
  box-shadow: 0 36px 100px rgba(2, 4, 20, .34);
  backdrop-filter: blur(26px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}

.auth-tabs button {
  min-height: 45px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  transition: .2s ease;
}

.auth-tabs button.active {
  color: #19191f;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.auth-heading {
  margin: 30px 2px 24px;
}

.auth-heading h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -.05em;
}

.auth-heading p {
  margin: 9px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-form.hidden {
  display: none;
}

.auth-form label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  height: 51px;
  border: 1px solid var(--surface-border);
  border-radius: 15px;
  outline: none;
  padding: 0 15px;
  color: white;
  background: rgba(255,255,255,.055);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.auth-form input::placeholder {
  color: rgba(255,255,255,.32);
}

.auth-form input:focus {
  border-color: var(--accent-b);
  background: rgba(255,255,255,.075);
  box-shadow: 0 0 0 4px rgba(142, 104, 255, .13);
}

.auth-form input.invalid {
  border-color: #ff778f;
  box-shadow: 0 0 0 4px rgba(255, 86, 113, .10);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 92px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-soft);
  background: rgba(255,255,255,.07);
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
}

.field-error,
.standalone-error {
  display: block;
  min-height: 15px;
  margin-top: 5px;
  color: #ff98a8;
  font-size: 10px;
  line-height: 1.45;
}

.password-strength {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.07);
}

.password-strength i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ff778f;
  transition: width .2s ease, background .2s ease;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-b);
}

.check-row span {
  margin: 0 !important;
}

.legal-check {
  margin-top: 1px;
}

.text-action {
  border: 0;
  cursor: pointer;
  color: var(--accent-a);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 1px;
  border-radius: 16px;
}

.auth-message {
  display: none;
  margin-bottom: 17px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-message.show {
  display: block;
}

.auth-message.error {
  color: #ffd8df;
  background: rgba(255, 87, 119, .12);
}

.auth-message.success {
  color: #c7ffe3;
  background: rgba(61, 215, 142, .12);
}

.auth-notice {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  color: var(--text-soft);
  background: rgba(255,255,255,.035);
}

.auth-notice strong {
  color: white;
  font-size: 11px;
}

.auth-notice p {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .auth-intro {
    text-align: center;
  }

  .auth-intro > p,
  .auth-benefits article {
    margin-inline: auto;
  }

  .auth-card {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .auth-header {
    min-height: 76px;
  }

  .auth-layout {
    padding-top: 30px;
  }

  .auth-intro h1 {
    font-size: 52px;
  }

  .auth-benefits {
    display: none;
  }

  .auth-card {
    padding: 20px;
    border-radius: 26px;
  }

  .back-link {
    font-size: 0;
  }

  .back-link::after {
    content: "←";
    font-size: 20px;
  }
}
