/* ======== RESET ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif;
}

/* ======== CONTAINER PRINCIPAL ======== */
.container {
  display: flex;
  min-height: 100vh;
  background-color: #121212; /* Fundo escuro */
}

/* ======== FORMULÁRIO ======== */
.form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: #1e1e1e;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Logo */
.logo {
  width: 150px;
  margin-bottom: 20px;
}

/* Título */
h2 {
  margin-bottom: 30px;
  font-weight: 700;
  color: #00ffd5;
}

/* Campos */
.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 20px;
}

label {
  margin-bottom: 5px;
  font-size: 14px;
  color: #ccc;
}

input,
select,
textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background-color: #2c2c2c;
  color: #fff;
  font-size: 14px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

select option {
  color: #000;
}

textarea {
  resize: vertical;
}

/* ======== BOTÃO ======== */
button {
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background-color: #00ffd5;
  color: #121212;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Hover */
button:hover {
  background-color: #00b3a6;
}

/* Desabilitado */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-voltar {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-voltar:hover {
  background-color: #0056b3;
  transform: scale(1.02);
}


/* ======== ARQUIVO CUSTOMIZADO ======== */
.custom-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.custom-file .custom-btn {
  padding: 12px 15px;
  background-color: #00ffd5;
  color: #121212;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
  flex-shrink: 0;
}

.custom-file .custom-btn:hover {
  background-color: #00b3a6;
}

.file-name {
  flex: 1;
  color: #bbb;
  font-size: 13px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Esconde o input original */
.custom-file input[type="file"] {
  display: none;
}

/* ======== FEEDBACK DE ERRO ======== */
.invalid {
  border: 2px solid #e63946;
  background-color: rgba(230, 57, 70, 0.1);
}

.error-message {
  color: #ff5c5c;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  font-weight: 600;
}

/* ======== CONTADOR DE CARACTERES ======== */
.char-counter {
  font-size: 12px;
  color: #bbb;
  margin-top: 5px;
  display: block;
  text-align: right;
}

/* ======== IMAGEM LATERAL ======== */
.image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0a0a0a;
}

.image-container img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .image-container {
    display: none;
  }

  .form-container {
    width: 100%;
    padding: 20px;
  }
}
