* {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  font-family: 'Nunito', 'Open Sans', sans-serif;
  color: #1f2937;
  background: #f3f6fb;
  min-height: 100vh;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
}

.auth-brand {
  flex: 1;
  background: linear-gradient(145deg, #0356d4 0%, #0468ff 45%, #3b82f6 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -120px;
  right: -100px;
}

.auth-brand::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -80px;
  left: -60px;
}

.auth-brand__inner {
  position: relative;
  z-index: 1;
}

.auth-brand__logo img {
  max-height: 48px;
  filter: brightness(0) invert(1);
}

.auth-brand__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin: 40px 0 16px;
  max-width: 400px;
}

.auth-brand__text {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.92;
  max-width: 420px;
  margin: 0;
}

.auth-benefits {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.auth-benefits li i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

.auth-brand__footer {
  position: relative;
  z-index: 1;
  font-size: 14px;
  opacity: 0.75;
}

.auth-main {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.auth-back:hover {
  color: #0468ff;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid #e8ecf1;
}

.auth-card__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}

.auth-card__subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: #f3f6fb;
  padding: 4px;
  border-radius: 10px;
}

.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-tabs a.active,
.auth-tabs a:hover {
  color: #0468ff;
}

.auth-tabs a.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.auth-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.auth-field input:focus {
  outline: none;
  border-color: #0468ff;
  box-shadow: 0 0 0 3px rgba(4, 104, 255, 0.12);
}

.auth-field input.is-invalid {
  border-color: #dc2626;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
}

.auth-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #0468ff;
}

.auth-link {
  color: #0468ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-checkbox--block {
  align-items: flex-start;
  line-height: 1.5;
}

.auth-checkbox--block span {
  flex: 1;
}

.auth-checkbox.is-invalid {
  color: #b91c1c;
}

.auth-field-error {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #b91c1c;
}

.auth-legal-links {
  margin-top: 20px;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
}

.auth-legal-links a {
  color: #6b7280;
  text-decoration: none;
}

.auth-legal-links a:hover {
  color: #0468ff;
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0468ff, #3b82f6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(4, 104, 255, 0.35);
}

.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #6b7280;
}

.auth-alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert--error ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

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

.auth-mobile-logo {
  display: none;
  margin-bottom: 24px;
}

.auth-mobile-logo img {
  max-height: 40px;
}

@media (max-width: 991px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-brand {
    padding: 32px 24px;
    min-height: auto;
  }

  .auth-brand__title {
    font-size: 26px;
    margin-top: 24px;
  }

  .auth-benefits {
    display: none;
  }

  .auth-brand__footer {
    display: none;
  }

  .auth-main {
    max-width: none;
    padding: 24px 20px 40px;
  }

  .auth-mobile-logo {
    display: block;
  }

  .auth-brand__logo {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }

  .auth-card__title {
    font-size: 24px;
  }
}
