:root {
  --main-color: #9bc428;
  --secondary-color: #f25753;
  --text-color: #4b525c;
  --input-focus-color: #0099ff;
  --input-border-radius: 8px;
  --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --white-color: #ffffff;
  --footer-height: 60px;
}

body {
  background-color: #f8f9fa;
  color: var(--text-color);
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  margin-top: 30px;
  margin-bottom: 30px;
  flex: 1;
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    margin-top: 60px;
  }
}

/* Card e cabeçalho */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed);
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  background-color: var(--main-color);
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 25px 0;
  font-size: 24px;
  border-bottom: none;
  position: relative;
}

.card-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--main-color) 0%, var(--secondary-color) 100%);
}

.card-body {
  padding: 30px 40px;
}

/* Estilo dos campos e labels */
.form-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-control {
  border-radius: var(--input-border-radius);
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  transition: all var(--transition-speed);
  font-size: 16px;
  height: auto;
}

.form-control:focus {
  border-color: var(--input-focus-color);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15);
}

/* Campo obrigatório */
.text-danger {
  color: var(--secondary-color) !important;
}

/* Botões */
.btn-primary {
  background-color: var(--main-color);
  border: none;
  border-radius: var(--input-border-radius);
  padding: 12px 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 87, 83, 0.3);
}

.btn-link {
  color: var(--input-focus-color);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.btn-link:hover,
.btn-link:focus {
  color: #0084cc;
  text-decoration: none;
}

/* Validação e erros */
input.error {
  border: 1px solid var(--secondary-color);
  background-color: rgba(242, 87, 83, 0.05);
}

label.error {
  color: var(--secondary-color);
  font-size: 13px;
  font-weight: 500;
  margin-top: 5px;
  display: block;
}

/* Input com ícone animado */
.input-icon {
  position: relative;
  display: block;
  width: 100%;
}

.input-icon i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  transition: color var(--transition-speed);
  pointer-events: none;
}

.input-icon .toggle-password {
  pointer-events: auto;
  cursor: pointer;
}

.input-icon input:focus + i {
  color: var(--input-focus-color);
}

/* Helper text */
.helper-text {
  font-size: 0.85rem;
  color: #6c757d;
  display: block;
  margin-top: 4px;
}

/* Footer - Estilo adotado do login.css */
.login-footer {
  text-align: center;
  padding: 1.2rem 0;
  background-color: #37474F;
  color: var(--white-color);
  width: 100%;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin-top: auto;
}

.login-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Removendo o estilo antigo do footer */
.footer {
  display: none;
}

/* Responsividade */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
  
  .container {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  .col-sm-6 {
    width: 100%;
    padding: 0 15px;
  }
  
  .card-body {
    padding: 20px 15px;
  }
  
  .card {
    margin-bottom: 20px;
    border-radius: 10px;
  }
  
  .card-header {
    padding: 20px 0;
  }
  
  .form-control {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .btn-primary {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .card:hover {
    transform: none;
  }
}

/* Suporte para telas muito pequenas (como iPhone SE) */
@media (max-width: 374px) {
  .card-body {
    padding: 15px 10px;
  }
  
  .form-control {
    padding: 8px 12px;
  }
  
  .card-header h1 {
    font-size: 18px;
  }
}

/* Melhorias para acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .card:hover {
    transform: none;
  }
} 