/* Estilos Gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: #f8f8f8;
  min-height: 100vh;
}

body:not(.dashboard-body) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background-color: #f8f8f8;
  overflow: hidden;
}

.container {
  display: flex;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  box-shadow: none;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
}

/* Painel Esquerdo */
.left-panel {
  flex: 1;
  background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(30, 40, 50, 0.9)),
    url("../img/1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 300px;
  overflow-y: auto;
}

.back-link {
  margin-bottom: 60px;
}

.back-link a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s;
}

.back-link a:hover {
  opacity: 0.8;
}

.content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-orange {
  background-color: #ff6b35;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 40px;
}

.main-title {
  font-size: 3.5em;
  font-weight: bold;
  line-height: 1.2;
  color: white;
  margin: 0;
}

.main-title .highlight {
  color: #ff6b35;
}

.logo-container {
  text-align: left;
  margin-bottom: 40px;
}

.logo {
  width: 100px;
  margin-bottom: 10px;
}

.logo-container h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.logo-container p {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.8;
  max-width: 300px;
}

.features {
  flex-grow: 1;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.feature-icon {
  background-color: rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.feature-icon i {
  font-size: 18px;
}

.feature-text h3 {
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: 600;
}

.feature-text p {
  font-size: 13px;
  opacity: 0.8;
}

.app-download {
  margin-top: 40px;
  text-align: left;
}

.app-download p {
  font-size: 14px;
  margin-bottom: 10px;
}

.app-icons a {
  color: white;
  margin-right: 15px;
  font-size: 20px;
}

/* Painel Direito */
.right-panel {
  flex: 1;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: linear-gradient(to bottom, #ff7a00 80%, #ff4500 100%);
  overflow-y: auto;
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
}

.form-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin: 0 auto;
  padding: 20px 10px;
  box-sizing: border-box;
}

.language-selector {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
}

.language-selector select {
  background-color: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 13px;
}

.avatar-container {
  position: absolute;
  top: 0;
  right: 0;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: 0.7;
}

.form-container h2 {
  font-size: 32px;
  color: white;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-container > p {
  color: white;
  margin-bottom: 30px;
  font-size: 14px;
  opacity: 0.9;
}

/* Formulário */
.account-type {
  margin-bottom: 20px;
}

.account-type p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

.radio-group {
  display: flex;
}

.radio-group label {
  margin-right: 20px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
}

.radio-group input[type="radio"] {
  margin-right: 5px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group.half {
  flex: 1;
  min-width: calc(50% - 7.5px);
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  margin-bottom: 15px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 16px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* Corrigir estilos do autocomplete do navegador */
input[type="text"]:-webkit-autofill,
input[type="email"]:-webkit-autofill,
input[type="password"]:-webkit-autofill,
input[type="tel"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.9) inset !important;
  -webkit-text-fill-color: #000 !important;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.9) inset !important;
  border-radius: 8px;
}

input[type="text"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:focus,
input[type="password"]:-webkit-autofill:focus,
input[type="tel"]:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: #000 !important;
  box-shadow: 0 0 0 1000px white inset !important;
}

/* Estilos para validação de campos */
.form-group input.valid {
  border-color: #4caf50;
  background-color: #f0fff0;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-group input.invalid {
  border-color: #f44336;
  background-color: #fff0f0;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

/* Melhorias para acessibilidade e UX */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
  outline: none;
  background-color: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Melhorias para o seletor de idioma */
.language-selector .current-lang {
  transition: transform 0.2s ease;
}

.language-selector .current-lang:hover {
  transform: scale(1.1);
}

.language-selector .lang-dropdown {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Estilo para botão desabilitado */
.btn-cadastrar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #cccccc;
  border: 1px solid #aaaaaa;
}

.btn-cadastrar.enabled {
  opacity: 1;
  cursor: pointer;
  background-color: #ff5500;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.password-input {
  position: relative;
  margin-bottom: 15px;
}

.password-input input {
  padding-right: 45px;
  margin-bottom: 0;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #333;
}

.remember-me {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 13px;
  color: #666;
}

.remember-me label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.remember-me label:hover {
  color: #333;
}

.remember-me input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.remember-me input[type="checkbox"]:hover {
  border-color: #f54a06;
}

.remember-me input[type="checkbox"]:checked {
  background: #f54a06;
  border-color: #f54a06;
}

.remember-me input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.remember-me input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 74, 6, 0.2);
}

.forgot-password {
  color: #ff5500;
  text-decoration: none;
  font-size: 13px;
}

.btn-cadastrar,
.btn-entrar {
  width: 100%;
  padding: 15px;
  background-color: rgb(165 165 165 / 95%);
    color: #252322;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.btn-cadastrar:hover,
.btn-entrar:hover {
  background-color: rgb(221, 121, 38);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-link,
.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: white;
}

.login-link a,
.register-link a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.login-link a:hover,
.register-link a:hover {
  opacity: 1;
}

.footer {
  text-align: center;
  margin-top: 30px;
  font-size: 11px;
  color: #999;
}

.footer a {
  color: #ff5500;
  text-decoration: none;
  font-weight: 500;
}

/* Responsividade Melhorada */
@media (max-width: 1400px) {
  .main-title {
    font-size: 3em;
  }
}

@media (max-width: 1200px) {
  .main-title {
    font-size: 2.5em;
  }
}

@media (max-width: 1024px) {
  .main-title {
    font-size: 2.2em;
  }
}

@media (max-width: 992px) {
  body:not(.dashboard-body) {
    overflow: auto;
  }

  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .left-panel {
    min-height: 40vh;
    padding: 30px 20px;
    width: 100%;
  }
  
  .right-panel {
    min-height: 60vh;
    padding: 30px 20px;
    width: 100%;
  }
  
  .main-title {
    font-size: 2em;
  }
  
  .badge-orange {
    font-size: 12px;
    padding: 6px 16px;
  }
  
  .form-container h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .left-panel {
    padding: 25px 20px;
    min-height: 35vh;
  }

  .right-panel {
    padding: 25px 20px;
    min-height: auto;
  }

  .main-title {
    font-size: 1.8em;
  }
  
  .back-link {
    margin-bottom: 30px;
  }
  
  .form-container h2 {
    font-size: 24px;
  }
  
  .form-container > p {
    font-size: 13px;
  }

  .logo-container h1 {
    font-size: 18px;
  }

  .logo-container p {
    font-size: 12px;
    max-width: 100%;
  }

  .language-selector {
  
    right: 10px;
  }
}

@media (max-width: 576px) {
  .left-panel {
    padding: 20px 15px;
    min-height: 30vh;
  }

  .right-panel {
    padding: 20px 15px;
  }

  .main-title {
    font-size: 1.5em;
  }
  
  .badge-orange {
    font-size: 11px;
    padding: 5px 14px;
    margin-bottom: 25px;
  }
  
  .back-link {
    margin-bottom: 20px;
  }
  
  .back-link a {
    font-size: 12px;
  }

  .form-container h2 {
    font-size: 22px;
  }

  .form-container > p {
    font-size: 12px;
    margin-bottom: 20px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"] {
    padding: 12px;
    font-size: 16px;
  }

  .btn-cadastrar,
  .btn-entrar {
    padding: 14px;
    font-size: 16px;
  }

  .language-selector {
    
    right: 8px;
  }

  .language-selector .current-lang img {
    width: 22px;
    height: 22px;
  }

  .language-selector .lang-dropdown {
    top: 28px;
    right: -5px;
  }

  .language-selector .lang-flag img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 375px) {
  .main-title {
    font-size: 1.3em;
  }
  
  .form-container h2 {
    font-size: 20px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .container {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }
  
  .left-panel {
    min-height: 100vh;
    min-width: 45%;
    padding: 20px;
    overflow-y: auto;
  }

  .right-panel {
    min-height: 100vh;
    padding: 20px;
    overflow-y: auto;
  }
  
  .main-title {
    font-size: 1.8em;
  }
  
  .back-link {
    margin-bottom: 30px;
  }
  
  .content-wrapper {
    justify-content: center;
  }
}
