/* Auth page layout and animations (extends konversed-base.css) */

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Background container: stacked layers for crossfade */
.auth-bg-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.auth-bg-layer.active {
  opacity: 1;
}

/* Form panel overlays background on mobile, right panel on desktop */
.auth-form-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 0;
  background-color: rgba(28, 28, 28, 0.55);
}

/* Responsive container for form content */
.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 0 1rem;
}

/* Input group with dividers */
.auth-input-group {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.auth-input-divider {
  height: 1px;
  background-color: #e3e4e3;
  margin: 0 12px;
}

/* Navigation row (forgot password / sign up links) */
.auth-nav-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* View switching */
.auth-view {
  transition: opacity 0.2s ease-in-out;
}

/* Flash message on auth pages */
.auth-flash {
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.15);
  font-size: 14px;
}

/* Skip link */
.auth-skip {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 11px;
  letter-spacing: 1px;
}

/* Button sizing and spacing */
.auth-view .konButton {
  font-size: 14px;
  padding: 10px 16px;
  margin-top: 0.5rem;
}

/* Google SSO button spacing */
.auth-google-btn {
  margin-top: 0.75rem;
}

/* Darker placeholder text for readability */
.auth-form .konInput::placeholder {
  color: #666 !important;
}

.auth-form .konInput:focus {
  outline: none;
  box-shadow: none;
}

/* Mobile: wider layers for horizontal pan (JS controls animation) */
@media (max-width: 991.98px) {
  .auth-bg-layer {
    width: 150%;
    right: auto;
    transition: none;
  }
}

/* Desktop: split layout */
@media (min-width: 992px) {
  .auth-page {
    flex-direction: row;
  }

  .auth-bg-container {
    position: relative;
    width: 50%;
    inset: auto;
    min-height: 100vh;
  }

  .auth-form-panel {
    width: 50%;
    background-color: rgba(28, 28, 28, 0.85);
  }
}
