* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.78)),
    url('img/fondo.jpg') center center / cover no-repeat fixed;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 140px 30px 30px;
}

.app-shell {
  width: 100%;
  max-width: 760px;
  position: relative;
}

.main-box {
  width: 100%;
  max-width: 760px;
  background: rgba(0, 0, 0, .58);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
}

.title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 46px;
  font-weight: 800;
}

.subtitle {
  margin: 0 0 26px;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input {
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 15px;
  background: rgba(255,255,255,.95);
  color: #111;
  font-size: 18px;
  outline: none;
}

.button {
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(90deg, #d4af37, #f4d472, #d4af37);
  color: #111;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: .96;
}

.message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.message.error {
  background: rgba(180, 35, 35, .25);
  border: 1px solid rgba(255, 120, 120, .25);
  color: #ffb3b3;
}

.result {
  margin-top: 20px;
  background: rgba(255,255,255,.96);
  color: #111;
  border-radius: 16px;
  padding: 18px;
}

.logos-panel {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 50;
}

.logo-link {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  padding: 10px;
  backdrop-filter: blur(5px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.logo-link:hover {
  transform: scale(1.06);
  border-color: rgba(255,255,255,.28);
  background: rgba(0,0,0,.65);
}

.logo-link.active {
  border-color: rgba(244, 212, 114, .85);
  box-shadow: 0 0 0 2px rgba(244, 212, 114, .18) inset;
}

.logo-link img {
  width: 100%;
  height: 100%;
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

@media (max-width: 980px) {
  .page {
    padding: 24px;
    align-items: flex-start;
  }

  .app-shell {
    max-width: 100%;
    margin-top: 22px;
  }

  .logos-panel {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 18px;
  }

  .logo-link {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  .logo-link img {
    max-width: 46px;
    max-height: 46px;
  }

  .main-box {
    padding: 24px 18px;
  }

  .title {
    font-size: 34px;
  }
}