/* ====================================================
   Auth pages — shared styles (login, signup, reset)
   ==================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-50) 55%, var(--blue-100) 100%);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 48px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid #E8ECF8;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
  padding: 40px 36px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  color: var(--gray-900);
}

.auth-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-sub {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
}

.auth-field input {
  background: var(--off-white);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-900);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.15s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.15s cubic-bezier(0.23, 1, 0.32, 1);
  box-sizing: border-box;
}

.auth-field input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--white);
}

.auth-field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.auth-forgot {
  font-size: 12px;
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 600;
}

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

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  font-size: 15px;
  border-radius: 100px;
  cursor: pointer;
}

.auth-error {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--red-600);
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.auth-success {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 10px;
  padding: 14px;
  color: var(--green-600);
  font-size: 14px;
  text-align: center;
  display: none;
  margin-bottom: 14px;
}

.auth-success strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gray-500);
}

.auth-footer a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  transition: border-color 0.15s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.15s cubic-bezier(0.23, 1, 0.32, 1);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.auth-google-btn:hover {
  border-color: var(--gray-400);
  background: var(--off-white);
}

.auth-google-btn:active {
  transform: scale(0.98);
}

.auth-google-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  font-size: 12px;
  color: var(--gray-400);
}

.auth-invalid {
  text-align: center;
  padding: 20px 0;
}

.auth-invalid p {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 20px;
}

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