:root {
  /* Cambiá estos valores para adaptar la marca */
        --brand: #FF6A13;
  --brand-dark: #E55D0E;
  --dark: #111111;
  --text: #222222;
  --muted: #6b6b6b;
  --page-bg: #faf9f8;
  --content-bg: #ffffff;
  --line: #dcdcdc;
  --danger: #e53935;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  min-height: 100vh;
}

/* ---------- Barra superior ---------- */

.miapp-proyectotopbar {
  background: var(--brand);
  height: 56px;
  display: flex;
  align-items: center;
}

.miapp-proyectotopbar-inner {
  width: 100%;
  max-width: 1090px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Reemplazá el <span> por tu <img> si tenés logo en imagen */

.miapp-proyectologo {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
  line-height: 1;
}

.miapp-proyectologo img {
  height: 40px;
  display: block;
}

.miapp-proyectobtn-exit {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 3px;
  padding: 4px 0;
  width: 128px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.miapp-proyectobtn-exit:hover {
  background: rgba(255, 255, 255, .15);
}

/* ---------- Contenido ---------- */

.miapp-proyectocontent {
  max-width: 1090px;
  margin: 0 auto;
  background: var(--content-bg);
  min-height: calc(100vh - 56px);
  border-left: 1px solid #f0efee;
  border-right: 1px solid #f0efee;
  padding: 36px 20px 80px;
}

.miapp-proyectopage-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 30px 105px;
  font-size: 17px;
  font-weight: 700;
}

.miapp-proyectopage-title .miapp-proyectoicon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  display: grid;
  place-items: center;
  color: var(--brand);
}

.miapp-proyectopage-title .miapp-proyectoicon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Tarjeta de login ---------- */

.miapp-proyectologin-card {
  width: 390px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 45px 34px;
  text-align: center;
}

.miapp-proyectologin-card h2 {
  margin: 0 0 40px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.miapp-proyectofield {
  position: relative;
  margin-bottom: 20px;
  text-align: left;
}

.miapp-proyectofield input {
  width: 100%;
  border: none;
  border-bottom: 0.5px solid #ccc;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text);
  background: transparent;
  outline: none;
}

.miapp-proyectofield input::placeholder {
  color: #999;
  font-weight: bold;
}

.miapp-proyectofield input:focus {
  border-bottom-color: var(--brand);
}

.miapp-proyectofield.miapp-proyectoemail input {
  border-bottom-color: #f2b58f;
}

.miapp-proyectofield .miapp-proyectotoggle-pass {
  position: absolute;
  right: 0;
  top: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
  padding: 0;
}

.miapp-proyectofield .miapp-proyectotoggle-pass svg {
  width: 16px;
  height: 16px;
}

.miapp-proyectofield.miapp-proyectopassword input {
  padding-right: 22px;
}

.miapp-proyectobtn-primary {
  display: block;
  width: 200px;
  margin: 8px auto 0;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.miapp-proyectobtn-primary:hover {
  background: var(--brand-dark);
}

.miapp-proyectoforgot {
  margin: 40px 0 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.miapp-proyectoforgot a {
  color: var(--danger);
  text-decoration: none;
  margin-left: 2px;
}

.miapp-proyectoforgot a:hover {
  text-decoration: underline;
}

.miapp-proyectobtn-register {
  display: block;
  width: 200px;
  margin: 0 auto;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.miapp-proyectobtn-register:hover {
  background: #000;
}

/* ---------- Teclado virtual ---------- */

.miapp-proyectovirtual-kb {
  width: 390px;
  margin: 20px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.miapp-proyectovirtual-kb input {
  margin: 0;
  width: 12px;
  height: 12px;
}

/* ---------- Bloque de entidades ---------- */

.miapp-proyectoentities {
  width: 460px;
  margin: 40px auto 0;
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 14px 20px 18px;
  text-align: center;
  color: var(--brand);
  font-size: 14px;
}

.miapp-proyectoentities p {
  margin: 0 0 12px;
}

.miapp-proyectobtn-outline {
  background: #fff;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.miapp-proyectobtn-outline:hover {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 480px) {
  .miapp-proyectopage-title {
    margin-left: 0;
  }

  .miapp-proyectologin-card,
  .miapp-proyectovirtual-kb,
  .miapp-proyectoentities {
    width: 100%;
  }
}
