/* Corrige delay e flicker nos ícones das caixas de texto */

.form-control:focus,
.form-control:hover {
  background: #fff !important;
  color: #212529 !important;
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .10) !important;
  transition: none !important;
}

input.form-control[type="file"]:hover,
input.form-control[type="file"]:focus {
  background: #fff !important;
  color: #212529 !important;
  border-color: #0d6efd !important;
  box-shadow: none !important;
  transition: none !important;
}

/* Cadastro Page Styles */

body {
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 0;
  min-height: 100vh;
}

.main-container {
  flex: 1 1 auto;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 0;
  overflow-y: auto;
}

/* Card container com largura padrão */
.card-container {
  width: 100%;
  max-width: 600px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 1rem;
  flex-shrink: 0;
}

.card-body {
  padding: 2.5rem !important;
  margin: 0 auto;
  width: 100% !important;
  max-width: 100% !important;
}

.form-control {
  padding: 0.75rem;
}

.card {
  border: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible;
}

.card-body {
  padding: 1.0rem !important;
}

.card-text {
  text-align: justify;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-align: center;
}

.form-control {
  padding: 0.3rem 0.5rem;
  font-size: 0.95rem;
}

.btn-primary {
  padding: 0.5rem 0;
  font-size: 1rem;
  width: 70%;
  margin: 0 auto 0.5rem auto;
  display: block;
}

.login-link-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* Custom File Upload Styles */
.custom-file-wrapper {
  position: relative;
}

.custom-file-btn {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.custom-file-btn:hover {
  border-color: #0d6efd;
}

.custom-file-btn.has-file {
  border-color: #198754;
  color: #198754;
}

.custom-file-btn.has-error {
  border-color: #dc3545;
  color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem 0;
    min-height: auto;
    justify-content: flex-start;
  }

  .card-body {
    padding: 1rem;
  }

  .card-container {
    max-width: 100vw !important;
    padding: 0 0.5rem;
  }
}

@media (max-height: 700px) {
  .main-container {
    justify-content: flex-start;
    padding-top: 1rem;
  }

  body {
    overflow-y: auto !important;
  }
}

@media (min-width: 1200px) {
  .card-container {
    max-width: 650px !important;
  }
}