/* Auth split layout: hero slider + form panel */

.auth-shell-body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: #f4f5f7;
  color: #111;
}

.auth-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.auth-skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #111;
  color: #fff;
  z-index: 100;
  border-radius: 8px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1.85fr) minmax(380px, 1fr);
  }
}

.auth-shell__hero {
  position: relative;
  min-height: 180px;
  background: #1a1d24;
  overflow: hidden;
}

@media (min-width: 960px) {
  .auth-shell__hero {
    min-height: 100vh;
  }
}

.auth-shell__hero-slider {
  position: absolute;
  inset: 0;
}

.auth-shell__hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.auth-shell__hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.auth-shell__hero-slide-link {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
  outline: none;
}
.auth-shell__hero-slide-link:focus-visible {
  box-shadow: inset 0 0 0 3px #fff;
}

.auth-shell__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.auth-shell__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.auth-shell__hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem 2rem;
  max-width: 42rem;
}
@media (min-width: 960px) {
  .auth-shell__hero-caption {
    padding: 2rem 2.5rem 3rem;
  }
}

.auth-shell__hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-shell__hero-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.auth-shell__hero-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-shell__hero-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #2a2f3a 0%, #3d4452 40%, #2a2f3a 80%);
  background-size: 200% 100%;
  animation: auth-shimmer 1.4s ease-in-out infinite;
}
.auth-shell__hero-skeleton[hidden] {
  display: none !important;
}

@keyframes auth-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.auth-shell__hero-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.auth-shell__hero-fallback[hidden] {
  display: none !important;
}
.auth-shell__hero-fallback-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  max-width: 22rem;
}

.auth-shell__hero-slides[hidden] {
  display: none !important;
}

.auth-shell__hero-controls {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}
@media (min-width: 960px) {
  .auth-shell__hero-controls {
    bottom: 1.25rem;
  }
}
.auth-shell__hero-controls[hidden] {
  display: none !important;
}

.auth-shell__hero-dots {
  display: flex;
  gap: 0.45rem;
}

.auth-shell__hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.auth-shell__hero-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}
.auth-shell__hero-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.auth-shell__panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1.25rem 2.5rem;
  background: #fff;
}

@media (min-width: 960px) {
  .auth-shell__panel {
    align-items: center;
    padding: 3rem 2rem;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.04);
  }
}

.auth-shell__panel-inner {
  width: 100%;
  max-width: 400px;
}

.auth-shell__logo {
  display: block;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.auth-shell__logo img {
  display: inline-block;
  height: auto;
  max-width: 160px;
}

.auth-shell__social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid #d8dde4;
  background: #fff;
  color: #1a1d24;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-social-btn:hover {
  border-color: #aeb6c4;
  background: #fafbfc;
}
.auth-social-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.auth-social-btn--facebook {
  color: #1877f2;
}

.auth-shell__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  color: #6b7280;
  font-size: 0.8rem;
}
.auth-shell__divider::before,
.auth-shell__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-form-stack h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-form-stack .muted {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-field {
  margin-bottom: 1rem;
}
.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f3f6fa;
  padding: 0 0.65rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input-wrap:focus-within {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 1px #111 inset;
}

.auth-input-wrap .material-symbols-outlined {
  font-size: 20px;
  color: #6b7280;
}

.auth-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0.25rem;
  font: inherit;
  font-size: 0.95rem;
  min-width: 0;
}
.auth-input-wrap input:focus {
  outline: none;
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.85rem;
}

.auth-row-between a {
  color: #111;
  font-weight: 500;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #111;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.auth-btn-primary:hover {
  background: #333;
}
.auth-btn-primary:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-foot {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  text-align: center;
  color: #4b5563;
}
.auth-foot a {
  color: #111;
  font-weight: 600;
}

.auth-shell__locale {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
}
.auth-shell__locale-link {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}
.auth-shell__locale-link:hover {
  text-decoration: underline;
}
.auth-shell__locale-link[aria-current='true'] {
  text-decoration: underline;
}
.auth-shell__locale-sep {
  margin: 0 0.35rem;
  color: #9ca3af;
}

.auth-shell__legal {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  color: #6b7280;
}
.auth-shell__legal-link {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-shell__legal-link:hover {
  text-decoration-thickness: 2px;
}

.auth-legal-register {
  margin-bottom: 1rem;
}
.auth-check--block {
  align-items: flex-start;
  margin-bottom: 0.65rem;
  line-height: 1.45;
  font-size: 0.85rem;
  color: #374151;
}
.auth-check--block input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.auth-check--block span {
  flex: 1;
}

.auth-alert {
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}
.auth-alert--danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.auth-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.auth-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}
