/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background-color: #f5f6f7;
    color: #333;
    padding: 20px;
  }
  
  /* TÍTULO PRINCIPAL */
  h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #8B0000;
  }
  
  /* FORM CONTAINER */
  form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
  }
  
  /* CAMPO FLUTUANTE */
  .form-group {
    position: relative;
    margin-bottom: 28px;
  }
  
  .form-group input,
  .form-group select {
    width: 100%;
    padding: 12px 10px 8px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    color: #333;
    transition: all 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group select:focus {
    outline: none;
    border-bottom: 2px solid #8B0000;
  }
  
  .form-group label {
    position: absolute;
    left: 10px;
    top: 12px;
    font-size: 16px;
    color: #666;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  
  /* FLUTUA O LABEL QUANDO HÁ TEXTO OU FOCUS */
  .form-group input:focus + label,
  .form-group input:not(:placeholder-shown) + label,
  .form-group select:focus + label,
  .form-group select:not([value=""]) + label {
    top: -10px;
    left: 6px;
    font-size: 13px;
    color: #8B0000;
    background: #fff;
    padding: 0 4px;
  }
  
  /* SELECT MODERNO */
  .form-group select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #888 50%),
      linear-gradient(135deg, #888 50%, transparent 50%);
    background-position: calc(100% - 20px) center, calc(100% - 15px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
  }
  
  /* BOTÃO */
  button {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #8B0000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  button:hover {
    background-color: #a20000;
  }
  
  /* LINK DE VOLTA */
  p {
    text-align: center;
    margin-top: 20px;
  }
  
  a {
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* RESPONSIVO */
  @media (max-width: 500px) {
    form {
      padding: 20px 15px;
    }
  
    h1 {
      font-size: 24px;
    }
  }
  