/* ==========================================================================
   Auth Pages — Two-column card layout matching the React original
   ========================================================================== */

/* Full-page centered background */
.auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-body);
}

/* Outer card container — matches React's 960px wide, 560px tall card */
.auth-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 960px;
  min-height: 560px;
  background-color: var(--background-paper);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin: 16px;
}

/* Left panel: form content */
.auth-form-panel {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  padding: 32px;
  gap: 40px;
  min-width: 0;
}

/* Logo link at top of form panel */
.auth-logo-link {
  display: block;
  width: fit-content;
  flex-shrink: 0;
}

.auth-logo {
  height: 36px;
  width: auto;
  display: block;
}

/* Centered form content stack */
.auth-form-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 330px;
  max-width: 100%;
  margin: 0 auto;
}

/* Page heading */
.auth-title {
  font-family: var(--font-family-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}

/* Auth-specific form field styling */
.auth-field {
  position: relative;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

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

.auth-input-wrap input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: none;
  border-bottom: 2px solid var(--divider);
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  border-radius: 6px 6px 0 0;
}

.auth-input-wrap input:focus {
  border-bottom-color: var(--primary-main);
  background-color: rgba(0, 0, 0, 0.07);
  box-shadow: none;
}

.auth-input-icon {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

.auth-toggle-pw {
  cursor: pointer;
}
.auth-toggle-pw:hover {
  color: var(--primary-main);
}

/* Submit button — full width */
.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  border-radius: 30px;
  margin-top: 4px;
}

/* Helper link (Forget password etc) */
.auth-link {
  color: var(--primary-main);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.auth-link:hover {
  text-decoration: underline;
}

/* Footer text (already have account?) */
.auth-footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
}

/* Right panel: decorative banner image */
.auth-banner-panel {
  flex: 0 0 50%;
  overflow: hidden;
  display: none; /* Hidden on mobile */
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .auth-banner-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
  }
}

.auth-banner-img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 767px) {
  .auth-card {
    flex-direction: column;
    min-height: auto;
  }

  .auth-form-panel {
    flex: none;
    padding: 24px 20px;
    gap: 24px;
  }

  .auth-form-inner {
    width: 100%;
  }

  .auth-title {
    font-size: 1.5rem;
  }
}
