/* Variáveis e Reset */
:root {
    --man-city-blue: #6CABDD;
    --bg-white: #fff;
    --bg-dark: #1E1E1E;
    --text-white: #fff;
    --text-black: #000;
    --text-gray: #666;
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-dark: 0 4px 8px rgb(183, 201, 255);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    margin: 0;
    font-family: sans-serif;
    background-color: var(--bg-white);
    color: var(--text-black);
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  body.dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
  }

  .container {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 20px;
  }
  
  .themeToggleButton  {
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--man-city-blue);
  }
    
  .themeToggleButton i  {
    width: 200px;
    height: 200px;
  }
 
  
 
  
  .card {
    background: var(--bg-white);
    border-radius: 20px;
    width: 100%;
    min-height: 630px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: box-shadow 0.3s;
  }
  
  body.dark .card {
    background: var(--bg-dark);
    box-shadow: var(--shadow-dark);
  }
  
  
  .header {
    text-align: center;
    padding: 16px;
    margin-bottom: 40px;
  }
  
  .header img {
    width: 150px;
    height: 100px;
  }
  
  .header .title {
    font-size: 24px;
    font-weight: bold;
    color: var(--man-city-blue);
    margin-top: 10px;
  }
 
  .formContainer {
    padding: 0 16px;
   
  }
  
  .subtitle {
    margin-top: -21px;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: center;
  }
  
  
  .inputContainer {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
  }
  
  .inputContainer.focused {
    border-color: var(--man-city-blue);
  }
  
  .inputContainer i {
    color: var(--man-city-blue);
  }
  
  .inputContainer input {
    flex: 1;
    height: 50px;
    margin-left: 10px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: inherit;
  }
  
  ::placeholder {
    color: #999;
  }
  
  body.dark ::placeholder {
    color: #aaa;
  }
  
  /* Erro */
  .errorContainer {
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    color: red;
  }
  
  .errorContainer.show {
    opacity: 1;
  }
   
  .loginButton,
  .signupButton {
    background-color: var(--man-city-blue);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 200px;
    color: var(--text-white);
    font-size: 16px;
    font-weight: bold;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    border: none;
  }
  
 
  .loginContainer,
  .signupContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }
  
  .loginText,
  .signupText {
    color: var(--text-gray);
  }
  
  .loginLink,
  .signupLink {
    text-decoration: none;
    color: var(--man-city-blue);
    font-weight: bold;
    margin-left: 5px;
  }
  
  /* Responsividade */
  @media (max-width: 600px) {
    .card {
      width: 90%;
      height: 550px;
      min-height: auto;
      margin: 20px auto;
    }
    .header img {
      width: 90px;
      height: 60px;
    }
    .header .title {
      font-size: 20px;
    }
    .loginButton,
    .signupButton {
      width: 80%;
    }
  }
  


  .terms-container {
    margin: 15px 0;
    font-size: 0.9em;
    color: #666;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.terms-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 2px solid #6CABDD;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.terms-checkbox input:checked ~ .checkmark {
    background-color: #6CABDD;
    border-color: #6CABDD;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.terms-checkbox a {
    color: #6CABDD;
    text-decoration: none;
    font-weight: 500;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}