/* Cadastre-se — layout de cadastrese.html (adaptado ao shell do site) */

main {
  padding-top: 86px;
}

.auth-page {
  --primary-green: #00a859;
  --primary-yellow: #fbb03b;
  --primary-red: #ed1c24;
  --primary-blue: #00aeef;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --bg-light: #f8f9fa;

  min-height: calc(100vh - 86px);
  background-color: var(--bg-light);
  background-image: linear-gradient(135deg, rgba(251, 176, 59, 0.05) 0%, rgba(0, 168, 89, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.auth-page .form-container {
  background-color: var(--white);
  width: 100%;
  max-width: 550px;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.auth-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.auth-page .form-group.full-width {
  grid-column: 1 / -1;
}

.auth-page .form-header {
  margin-bottom: 30px;
}

.auth-page .form-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 10px;
  position: relative;
  display: inline-block;
}

.auth-page .form-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background-color: var(--primary-yellow);
  border-radius: 2px;
}

.auth-page .form-header p {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 15px;
  line-height: 1.5;
}

.auth-page .form-group {
  text-align: left;
  margin-bottom: 0;
}

.auth-page .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.auth-page .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.auth-page .form-group input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.1);
}

.auth-page .form-hint-password {
  text-align: left;
  font-size: 12.5px;
  color: var(--text-light);
  margin: 12px 0 20px;
}

.auth-page .captcha-group {
  margin-top: 4px;
}

.auth-page .captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-page .captcha-question {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: #f4f7f5;
  border: 2px solid #e5ece8;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-dark);
  flex: 1 1 180px;
}

.auth-page .captcha-question strong {
  margin-left: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: 0.02em;
}

.auth-page .captcha-row input {
  flex: 0 1 140px;
  max-width: 160px;
  text-align: center;
  font-weight: 600;
}

.auth-page .form-hint-captcha {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-light);
}

.auth-page .btn-submit {
  width: 100%;
  padding: 16px;
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  margin-bottom: 20px;
}

.auth-page .btn-submit:hover {
  background-color: #008d4a;
  transform: translateY(-2px);
}

.auth-page .btn-submit:active {
  transform: translateY(0);
}

.auth-page .login-link {
  font-size: 14px;
  color: var(--text-light);
}

.auth-page .login-link a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-page .login-link a:hover {
  text-decoration: underline;
}

.auth-page .auth-alert {
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.45;
}

.auth-page .auth-alert-error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
}

.auth-page .auth-alert-success {
  background: #e8f8ef;
  color: #0d5c34;
  border: 1px solid #b7e4c7;
}

@media (max-width: 900px) {
  .auth-page .form-grid {
    grid-template-columns: 1fr;
  }
}

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

  .auth-page .form-container {
    padding: 30px 20px;
  }
}
