/* Reset e base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top left, #FF5722, #0a0c14 70%);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Card Container */
.card {
  background: url('/frontend/img/PaginaErro/galaxia.jpg') no-repeat center/cover;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  max-width: 960px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.6s ease-out;
  height: 500px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(10, 14, 22, 0.6);
  z-index: 0;
}

/* Layout principal */
.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
}

/* Lado da imagem (50%) */
.imagem-lado-container {
  width: 50%;
  height: 100%;
}

.imagem-lado {
  height: 100%;
}

.imagem-lado img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: none;
  filter: drop-shadow(0 0 5px rgba(255, 87, 34, 0.8)); /* sombra laranja */
}

/* Lado do texto/formulário (50%) */
.texto-lado {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.texto-lado h1 {
  font-size: 2.8rem;
  color: #FF5722;
  margin-bottom: 10px;
}

.texto-lado h2 {
  font-size: 1.4rem;
  color: #ffffffb0;
  margin-bottom: 24px;
}

/* Botões */
.botoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.btn, .btn-secundario {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  width: 100%;
  max-width: 280px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn {
  background-color: #FF5722;
  color: #0a0c14;
}

.btn:hover {
  background-color: #9c310f;
}

.btn-secundario {
  background-color: transparent;
  border: 2px solid #66c0f4;
  color: #ffffff;
}

.btn-secundario:hover {
  background-color: #417a9b;
  color: #ffffff;
  border-color: #417a9b;
}

/* Formulário SteamID */
.form-idsteam {
  display: none;
  margin-top: 20px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.form-idsteam input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 12px;
  background-color: #ffffff;
  color: #000;
}

.form-idsteam button {
  width: 100%;
  padding: 12px;
  background-color: #00ffff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-idsteam button:hover {
  background-color: #00cccc;
}

.error-msg {
  color: #ff5555;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/* Perfil salvo */
.perfil-salvo {
  margin-top: 20px;
  text-align: center;
}

.perfil-salvo div {
  cursor: pointer;
  display: inline-block;
  background: #ffffff11;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.3s;
}

.perfil-salvo div:hover {
  background: #8787872b;
}

.perfil-salvo img {
  width: 80px;
  border-radius: 50%;
  margin-bottom: 8px;
}

/* Animação */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 767px) {
  .card {
    height: auto;
  }

  .card-content {
    flex-direction: column-reverse;
  }

  .imagem-lado-container, .texto-lado {
    width: 100%;
  }

  .imagem-lado img {
    max-height: 350px;
  }

  .texto-lado {
    padding: 20px;
  }

  .botoes {
    gap: 10px;
  }
}
