:root {
    font-size: calc(12px + 0.5vw);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body {
    min-height: 100vh;
    width: 100%;
    font-family: 'Orbitron', sans-serif;
    background: #001d3d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  body::before {
    content: '';
    position: fixed; top: 0; left: 0;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, #001d3d, #003a6c, #001d3d);
    animation: bgMove 15s ease infinite;
    z-index: 0;
  }
  @keyframes bgMove {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25%, -25%) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
  }
  .login-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 82, 204, 0.5);
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .login-header-center {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
  }
  .login-header-center h1 {
    color: #ffffff;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
  }
  .login-header-center p {
    color: #00aaff;
    font-size: clamp(0.8rem, 3vw, 1rem);
    letter-spacing: 0.1em;
    text-shadow: 0 0 5px rgba(0,170,255,0.5);
    margin-top: 5px;
  }
  .login-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-width: 340px;
    gap: 20px;
    justify-content: center;
  }
  .eth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex: 1 1 120px;
  }
  .eth-icon svg {
    width: 10%;
    height: auto;
    max-width: 100%;
    fill: #ffffff;
    filter: drop-shadow(0 0 15px #0052cc);
    animation: ethSpin 12s ease-in-out infinite, ethPulse 4s ease-in-out infinite;
    transform-origin: center center;
  }
  @keyframes ethPulse {
    0%, 100% { filter: drop-shadow(0 0 15px #0052cc); }
    50% { filter: drop-shadow(0 0 25px #00aaff); }
  }
    .eth-icon svg:hover {
    transform: scale(1.1) rotateY(15deg) rotateX(5deg);
    filter: drop-shadow(0 0 25px #00c3ff);
  }
  @keyframes ethSpin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg) scale(1.05); }
    100% { transform: rotateY(360deg); }
  }
  @keyframes ethPulse {
    0%, 100% { filter: drop-shadow(0 0 15px #0052cc); }
    50% { filter: drop-shadow(0 0 25px #00aaff); }
  }

  .top-buttons {
    display: flex;
    flex-wrap: nowrap; /* <- evita que salten a otra línea */
    gap: 10px;
    justify-content: center; /* opcional: centrado */
  }
  .btn-secondary {
    flex: 1 1 0;
    /*min-width: 150px;*/
    padding: 10px;
    background: transparent;
    border: 2px solid #00aaff;
    color: #00aaff;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
    text-align: center;
  }
  .btn-secondary:hover {
    background: #00aaff;
    color: #001d3d;
  }
  .invalid-feedback{
    color: white;
  }
  .form-panel {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 82, 204, 0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .form-panel h2 {
    color: #ffffff;
    font-size: 1.5rem;
  }
  .form-panel label {
    color: #ffffff;
    font-size: 0.8rem;
  }
  .form-panel input {
    padding: 10px;
    border: 2px solid #00aaff;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: 0.9rem;
    width: 100%;
  }
  .form-panel input::placeholder {
    color: rgba(255,255,255,0.7);
  }

  .login-form {
    flex: 1 1 0;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .form-panel .buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .btn-primary {
    flex: 0 0 150px; /* o el ancho que prefieras */
    text-align: center;
    padding: 10px 0;
    background: #00aaff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    white-space: nowrap;
  }

  .btn-primary:hover {
    background: #ffffff;
    color: #00aaff;
    transform: scale(1.02);
  }

    div {
  margin-bottom: 5px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input {
  width: 100%;
  padding: 2px;
  box-sizing: border-box;
}

.section.register {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
  }

  .login-container {
    width: 100% !important;
    min-width: 400px;
  }

  @media (min-width: 768px) {
    .login-container {
      min-width: 700px;
    }
  }

  .main {
    min-width: 90% !important;

    display: flex;
    justify-content: center;
    align-items: center;
  }


@media (min-width: 1200px) {
  #main {
    margin-left: 0px!important;
  }
}
