/* Author login / signup — scoped to .author-auth-page only */

.author-auth-page {
  --author-auth-radius: 14px;
  --author-auth-shadow: 0 12px 40px rgba(51, 51, 51, 0.08);
  --author-auth-border: rgba(80, 81, 79, 0.12);
  min-height: calc(100vh - 90px);
  padding: clamp(1rem, 4vw, 2.5rem) clamp(0.75rem, 3vw, 1.5rem) 3rem;
  background: linear-gradient(165deg, #fafafa 0%, #f0f0f0 45%, #ebe9e6 100%);
}

.author-auth-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.author-auth-hero {
  text-align: center;
  margin-bottom: clamp(1.25rem, 4vw, 2rem);
  padding: 0 0.25rem;
}

.author-auth-hero h1 {
  font-family: var(--ff-nunito);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--black-color);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.author-auth-hero p {
  font-family: var(--ff-robo);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  color: var(--dark-color);
  margin: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.author-auth-page .forms-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: stretch;
  justify-content: center;
  max-width: 100%;
}

.author-auth-page .left,
.author-auth-page .right {
  flex: unset;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--author-auth-radius);
  background: #fff;
  box-shadow: var(--author-auth-shadow);
  border: 1px solid var(--author-auth-border);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.author-auth-page .form-title {
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--author-auth-border);
  margin-bottom: 0.25rem;
  width: 100%;
}

.author-auth-page .form-title h4 {
  font-family: var(--ff-nunito);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--black-color);
  margin: 0;
  line-height: 1.35;
}

.author-auth-page .login-form-container,
.author-auth-page .signup-form-container {
  width: 100%;
}

.author-auth-page .login-form,
.author-auth-page .signup-form {
  width: 100%;
}

.author-auth-page .input-field {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 3.25rem;
  padding: 0.45rem 0;
  box-sizing: border-box;
}

.author-auth-page .input-field label {
  display: block;
  font-family: var(--ff-robo);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.author-auth-page .input-field input {
  height: 3rem;
  min-height: 48px;
  width: 100%;
  border-radius: 10px;
  border: 2px solid rgba(80, 81, 79, 0.18);
  padding-left: 14px;
  padding-right: 14px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.author-auth-page .input-field input:hover {
  border-color: rgba(199, 39, 39, 0.35);
}

.author-auth-page .input-field input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(199, 39, 39, 0.15);
  outline: none;
}

.author-auth-page .input-field button {
  margin-top: 0.35rem;
  min-height: 48px;
  border-radius: 10px;
  font-family: var(--ff-nunito);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(199, 39, 39, 0.25);
}

.author-auth-page .input-field button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(199, 39, 39, 0.3);
}

.author-auth-page .input-field button:active {
  transform: translateY(0);
}

.author-auth-forgot {
  text-align: center;
  margin: 0.75rem 0 0;
  padding-top: 0.25rem;
}

.author-auth-forgot a {
  font-family: var(--ff-robo);
  font-size: 0.95rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.author-auth-forgot a:hover {
  color: var(--active-color);
  border-bottom-color: var(--active-color);
}

.author-auth-page .form-errors {
  margin: 1rem 0 0;
  width: 100%;
}

.author-auth-page .form-errors.d-flex {
  display: block;
}

.author-auth-page .form-errors .errors {
  width: 100%;
  margin: 0;
  font-family: var(--ff-robo);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--primary-color);
  padding: 0.65rem 0.85rem;
  background: rgba(199, 39, 39, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(199, 39, 39, 0.12);
}

@media (max-width: 800px) {
  .author-auth-page .forms-container {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-auth-page .input-field button:hover,
  .author-auth-page .input-field button:active {
    transform: none;
  }

  .author-auth-page .input-field input,
  .author-auth-page .input-field button {
    transition: none;
  }
}
