/* ======= Campos y layout base ======= */
.mcp-form-group {
    margin-bottom: 20px;
  }
  
  .mcp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
  }
  
  .mcp-form-group input[type="text"],
  .mcp-form-group input[type="email"],
  .mcp-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #eef4ff; /* sutil azul, como en la captura */
  }
  
  .mcp-form-group input:focus {
    outline: none;
    border-color: #0073aa;
  }
  
  .mcp-register-wrapper,
  .mcp-login-wrapper,
  .mcp-change-password-wrapper {
    max-width: 400px;
    margin: 10vh auto;
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  }
  
  /* ======= Botón base compartido (login + Google) ======= */
  .mcp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  
    width: 100%;
    height: 44px;
  
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    border-radius: 6px;
  
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
  
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
  }
  
  .mcp-btn:hover {
    background: #f7f8f8;
    border-color: #cdd1d6;
  }
  
  .mcp-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66,133,244,.3);
  }
  
  .mcp-btn[disabled],
  .mcp-btn[aria-disabled="true"] {
    opacity: .6;
    pointer-events: none;
  }
  
  /* El botón nativo dentro del wrapper hereda el estilo base y neutraliza hovers globales */
  .mcp-login-wrapper button#mcp-login-button {
    all: unset;               /* resetea estilos por defecto */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
  }
  .mcp-login-wrapper button#mcp-login-button:hover {
    background: #f7f8f8;
    border-color: #cdd1d6;
  }
  .mcp-login-wrapper button#mcp-login-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66,133,244,.3);
  }
  .mcp-login-wrapper button#mcp-login-button:disabled {
    opacity: .6;
    pointer-events: none;
  }
  
  /* ======= Botón Google (solo diferencias mínimas) ======= */
  .mcp-google-login-btn img {
    width: 20px;
    height: 20px;
    display: block;
  }
  
  /* ======= Mensajes y enlaces ======= */
  .mcp-message,
  .mcp-login-error,
  #mcp-register-message,
  #mcp-password-message {
    margin-top: 10px;
    font-size: 14px;
    color: red;
  }
  
  .mcp-register-success {
    color: green;
    font-weight: 600;
    margin-top: 10px;
  }
  
  .mcp-register-link,
  .mcp-login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
  }
  
  .mcp-register-link a,
  .mcp-login-link a {
    color: #ff6a00;
    text-decoration: none;
  }
  
  .mcp-register-link a:hover,
  .mcp-login-link a:hover {
    text-decoration: underline;
  }
  
  /* ======= Separador "o" ======= */
  .mcp-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: #666;
    font-size: 12px;
  }
  .mcp-or::before,
  .mcp-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e2e2;
  }
  .mcp-or span { line-height: 1; }
  
  /* ======= Spinner opcional para estado "cargando" ======= */
  .mcp-btn--loading { position: relative; color: transparent !important; }
  .mcp-btn--loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #c9ccd1;
    border-top-color: #4285f4;
    animation: mcp-spin .9s linear infinite;
  }

  


  .mcp-google-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    text-decoration: none;
    color: #1f1f1f;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }
  .mcp-google-login-btn:hover {
    background: #f7f8f8;
    border-color: #cdd1d6;
  }
  .mcp-google-login-btn img {
    width: 20px;
    height: 20px;
    display: block;
  }

  /* Hacer el botón de Google del mismo ancho del formulario */
.mcp-google-login-btn{
  width: 91%;
  justify-content: center; /* icono + texto centrados */
  padding: 12px 16px;      /* altura similar al botón normal */
}



/* Botón base compartido (login + Google) */
.mcp-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; height:44px;
  background:#fff; color:#1f1f1f;
  border:1px solid #dadce0; border-radius:6px;
  font-weight:600; line-height:1; text-decoration:none; cursor:pointer;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  transition:background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;

  /* 🛠️ clave para que no se salga del cuadro */
  box-sizing: border-box;
  max-width:100%;
}

/* El botón nativo (submit) iguala el comportamiento */
 #mcp-login-button{
    all: unset;               /* resetea estilos por defecto */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;

}

/*Boton de registrate*/
button#mcp-register-button{
    background-color: #ff6a00;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

/* Hovers/focus/disabled (opcional, por si aún no los tienes) */
.mcp-btn:hover,
.mcp-login-wrapper #mcp-login-button:hover{ background:#f7f8f8; border-color:#cdd1d6; }
.mcp-btn:focus-visible,
.mcp-login-wrapper #mcp-login-button:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(66,133,244,.3); }
.mcp-btn[aria-disabled="true"],
.mcp-login-wrapper #mcp-login-button:disabled{ opacity:.6; pointer-events:none; }

/* Icono Google tamaño fijo */
.mcp-google-login-btn img{ width:20px; height:20px; display:block; }

.mcp-form-group a{
    color: black;
}


@keyframes mcp-spin { to { transform: rotate(360deg); } }
  
/* ======= Responsive tweaks ======= */
@media (max-width: 420px) {
  .mcp-google-login-btn{
      width: 88%;
  }
  .mcp-register-wrapper,
  .mcp-login-wrapper,
  .mcp-change-password-wrapper {
    margin: 6vh 12px;
    padding: 22px;
  }
}



