     :root {
      --main-bg-color: #f8f5f0;
      --header-color: #a52a2a;
      --accent-color: #d4af37;
      --secondary-accent: #c19b76;
      --text-color: #333;
      --light-text: #777;
      --border-color: #8b4513;
      --card-bg: #fefdf9;
      --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
      --transition: all 0.3s ease;
      --error-color: #e74c3c;
      --success-color: #2ecc71;
      --header-bg: #a52a2a;
    }
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
body {
      font-family: 'Playfair Display', 'Georgia', serif;
      background-color: var(--main-bg-color);
      color: var(--text-color);
      line-height: 1.7;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='%23f8f5f0'/%3E%3Cpath d='M0 0l100 100M100 0L0 100' stroke='%23e8e1d3' stroke-width='0.9'/%3E%3C/svg%3E");
      position: relative;
      overflow-x: hidden;
      padding-bottom: 3%;
    }
    
    
    /* Header com largura total (igual à página principal) */
    .header-full-width {
      width: 100vw;
      left: 50%;
      right: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
      background: linear-gradient(135deg, var(--header-bg), #8b0000);
      margin-bottom: 40px;
      box-shadow: var(--shadow);
    }
    
    .header-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }
    
    .newspaper-header {
      text-align: center;
      position: relative;
      padding: 15px 0 25px;
    }
    
    .newspaper-title {
    font-family: 'Playfair Display', serif;
      font-size: 4.5rem;
      font-weight: 800;
      color: white;
      text-transform: uppercase;
      letter-spacing: 3px;
      margin: 15px 0 5px;
      line-height: 1.1;
      position: relative;
      display: inline-block;
      padding: 0 20px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .newspaper-title::before,
    .newspaper-title::after {
      content: "✶";
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: var(--accent-color);
      font-size: 3rem;
      text-shadow: none;
    }
    
    .newspaper-title::before {
      left: -40px;
    }
    
    .newspaper-title::after {
      right: -40px;
    }
    
    .newspaper-subtitle {
      font-style: italic;
      font-size: 1.3rem;
      color: rgba(255, 255, 255, 0.9);
      margin: 10px 0;
      letter-spacing: 1px;
      font-weight: 400;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
    
/* Container do link de voltar */
.back-link-container {
  width: 100%;
  max-width: 900px; 
  margin: -5px auto;
  padding: 0 35px 15px 0; 
  position: relative;
  display: flex;
  justify-content: flex-start; 
}

/* Link de voltar aprimorado */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--header-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 10px 15px;
  border-radius: 8px;
}

.back-link:hover {
  color: var(--accent-color);
  transform: translateX(-5px);
}
    
    /* Container principal */
    .container {
      width: 100%;
      max-width: 900px;
      background: var(--card-bg);
      padding: 35px;
      border-radius: 16px;
      box-shadow: var(--shadow-lg);
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(212, 175, 55, 0.2);
      animation: fadeIn 0.6s ease;
    }
    
    .container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
      opacity: 0.8;
      border-radius: 2px 2px 0 0;
    }
    
    /* Cabeçalho do formulário */
    .form-header {
      text-align: center;
      margin-bottom: 40px;
      position: relative;
    }
    
    .form-header h1 {
      font-size: 2.4rem;
      color: var(--header-color);
      font-weight: 700;
    }
    
    .form-header::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 3px;
      background: var(--accent-color);
    }
    
    /* Alert box aprimorada */
    .alert {
      padding: 18px 20px;
      border-radius: 12px;
      margin-bottom: 30px;
      display: none;
      animation: fadeIn 0.3s ease;
      border-left: 4px solid transparent;
      background: rgba(212, 175, 55, 0.1);
    }
    
    .alert-success {
      background: rgba(46, 204, 113, 0.1);
      border-left-color: var(--success-color);
      color: var(--success-color);
    }
    
    .alert-error {
      background: rgba(231, 76, 60, 0.1);
      border-left-color: var(--error-color);
      color: var(--error-color);
    }
    
    .alert i {
      margin-right: 10px;
      font-size: 1.2rem;
    }
    
    /* Formulário */
    #cadastroForm {
      margin-top: 30px;
    }
    
    .form-grid {
      display: grid;
      gap: 25px;
      margin-bottom: 30px;
    }
    
    .form-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-bottom: 1%;
    }

    .form-group {
      position: relative;
      margin-bottom: 5px;
    }
    
    .form-group label {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
      font-weight: 600;
      color: var(--header-color);
      font-size: 0.95rem;
    }
    
    .form-group label i {
      color: var(--accent-color);
      width: 16px;
    }
    
    /* Inputs aprimorados */
    .input-icon {
      position: relative;
    }
    
    .input-icon i {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--accent-color);
      font-size: 1.1rem;
    }
    
    .form-control {
      width: 100%;
      padding: 14px 15px 14px 15px;
      border: 2px solid rgba(165, 42, 42, 0.2);
      border-radius: 10px;
      font-size: 1rem;
      font-family: inherit;
      transition: var(--transition);
      background-color: rgba(212, 175, 55, 0.05);
    }
    
    
    .form-control:focus {
      outline: none;
      border-color: var(--accent-color);
      box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    }
    
    .form-control::placeholder {
      color: var(--light-text);
      opacity: 0.7;
    }
    
    select.form-control {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a52a2a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 15px center;
      background-size: 12px;
      padding-right: 40px;
      cursor: pointer;
    }
    
    /* Toggle de senha */
    .password-toggle {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: var(--light-text);
      font-size: 1.1rem;
      transition: var(--transition);
    }
    
    .password-toggle:hover {
      color: var(--accent-color);
    }
    
    /* Botão aprimorado */
    .btn {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, var(--header-color), #8b0000);
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      font-family: inherit;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 3%;
      box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
    }
    
    .btn:hover {
      background: linear-gradient(135deg, #8b0000, var(--header-color));
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(165, 42, 42, 0.4);
    }
    
    .btn:active {
      transform: translateY(0);
    }
    
    .btn i {
      font-size: 1.2rem;
    }
    
    /* Link de login */
    .login-link {
      text-align: center;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid rgba(212, 175, 55, 0.2);
      color: var(--light-text);
      font-size: 1rem;
    }
    
    .login-link a {
      color: var(--header-color);
      text-decoration: none;
      font-weight: 600;
      margin-left: 5px;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    
    .login-link a:hover {
      color: var(--accent-color);
      text-decoration: underline;
    }
    
    /* Validação visual */
    .form-group.error .form-control {
      border-color: var(--error-color);
      background-color: rgba(231, 76, 60, 0.05);
    }
    
    .form-group.success .form-control {
      border-color: var(--success-color);
      background-color: rgba(46, 204, 113, 0.05);
    }
    
    .form-error {
      color: var(--error-color);
      font-size: 0.85rem;
      margin-top: 5px;
      display: flex;
      align-items: center;
      gap: 5px;
      animation: fadeIn 0.3s ease;
    }
    
    /* Animações */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
      20%, 40%, 60%, 80% { transform: translateX(5px); }
    }
    
    .shake {
      animation: shake 0.5s ease-in-out;
    }
    
    /* Efeito de brilho sutil */
    .form-group .form-control:focus {
      position: relative;
      z-index: 1;
    }
    
    .form-group .form-control:focus::before {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      border-radius: 12px;
      background: linear-gradient(45deg, var(--accent-color), var(--header-color));
      z-index: -1;
      opacity: 0.3;
    }
  
    
    /* Efeito de carregamento */
    .loading {
      position: relative;
      pointer-events: none;
      opacity: 0.7;
    }
    
    .loading::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 20px;
      margin: -10px 0 0 -10px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    
    @keyframes spin {
      to { transform: rotate(360deg); }
    }