html, body{display: block; position: relative;margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 15px; overflow: hidden}
html{width: 100%;height: 100%; overflow: hidden;}
body{width: 100%;height: 100%; overflow: hidden;}

a{text-decoration: none; color: inherit;}
img{width: auto; height: auto; max-width: 100%; max-height: 100%; border: none}
input, button{border: none; padding: 0; margin: 0; appearance: normal; -webkit-user-select: text;}
input[type="submit"]{padding: 7px 25px !important; border-radius: 2px !important;text-align: center; font-size: 15px; cursor: pointer; min-width: 200px;}
p{margin: 0; padding: 0; -webkit-margin-after: 0; -webkit-margin-before: 0;}



/********* App body *********/
.welement{display:block; height: 100%; width: 100%;}
#wtop{top: 0; left: 0;}
#wbodyBackgroundLayer{display: block; position: absolute; width: 100%; height: 100%; z-index: -1; background-image: url('/assets/images/lewaterpolo_background.jpg'); background-size: 100% 100%; background-repeat: no-repeat; opacity: 0.6}
#wbody{overflow: hidden; z-index: 0}  /** Pendiente de quitarlo **/


/*****************/
/***** Loader ****/
#wtopLoaderContainer{display: block; position: relative; margin-top: 200px;}
#loadingWait{display: inline-block; position: relative; border: 8px solid #000; border-radius: 50%; border-top: 8px solid #efe31a;
    border-bottom: 8px solid #efe31a; width: 40px; height: 40px; -webkit-animation: spin 1000ms linear infinite;
    animation: spin 1000ms linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/**************/
/**** Msg *****/
#wtop{display: none; position: absolute; z-index: 15;}
.wtop{display: none; position: absolute; z-index: 15;}
    #wtopOpacity{display: block; position: absolute; width: 100%; height: 100%; background-color: #eee; opacity: 0.7}
    .wtopOpacity{display: block; position: absolute; width: 100%; height: 100%; background-color: #eee; opacity: 0.7}
    #wtopContainer{display: block; position: relative; width: 100%; height: 100%; background-color: transparent; text-align: center;}
    .wtopContainer{display: block; position: relative; width: 100%; height: 100%; background-color: transparent; text-align: center;}



/***************/
/**** Float ****/
#wfloat{display: block; position: relative; width: 100%; height: 0; overflow: visible;}
    .wfloat{display: inline-block; position: fixed; z-index: 100;}
        .wfloat_close{display: inline-block; position: absolute; right: 0; top: 0; z-index: 1000}
        .wfloat_drag{display: inline-block; position: absolute; right: 30px;font-size: 11px; top: 0; z-index: 1000}

        #wfloat button{font-size: 14px; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px;background: #fff;}



#wrapper{display: block; position:relative; margin: 0}
    .wrapperElement{display: block; position: relative; width: 900px;}
    .wrapperElement.unloggedWrapperElement{width: auto;}
    .wrapperElementSeparator{height: 10px; width: 100%; background-color: #2a5a86;}

    #main{margin: 10px auto 40px;min-height: 400px;}

    #footer{display: none; position: relative; width: 900px; margin: auto; padding-bottom: 20px; font-size: 15px; color: #999;}



/** Unlogin page **/
/*******************************************************************/
#loginScreen{display: block; position: relative;width: 100%; z-index: 0;}
    #loginDefineTextContainer{text-align: center; margin: 50px auto}
        #loginDefineText{}

    #wrapper.unloggedWrapper{height: 100%;}
        main.unloggedWrapperElement{height: calc(100% - 33px); }
        main.unloggedWrapperCrmgmlImage{}

    #wrapper{}

        #mainContainer{display: block; position: relative; width: 100%; height: 100%; top: 0; left: 0; text-align: center}

/* =========================
   LOGIN – look premium / panel
   ========================= */

:root{
  --brand:#2F7FEA;
  --ink:#0F172A;
  --muted:#64748B;
  --line: rgba(15,23,42,.10);
  --glass: rgba(255,255,255,.78);
  --shadow: 0 18px 50px rgba(15,23,42,.16);
  --shadowSoft: 0 10px 26px rgba(15,23,42,.10);
}

/* Main (centra sin inventos) */
.unloggedWrapperElement{
  min-height: calc(100vh - 0px);
}

#mainContainer{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

/* Frame */
#unlogedFrame{
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

/* Tarjeta login */
#loginFormContainer{
  width: min(420px, 92vw);
  padding: 22px 26px 18px;
  border-radius: 22px;

  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.75);

  box-shadow: var(--shadow);
  overflow: hidden;

  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}



/* Activación */
#loginFormContainer.loginReady{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Logo */
#unlogedCRMlogo{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 18px;
  height: auto;
  width: 100%;
}
#unlogedCRMlogo img{
  max-height: 64px;
  width: auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,.10));
}

/* Form */
#loginForm{
  display: grid;
  gap: 12px;
}

/* Field row */
.loginFormField{
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadowSoft);

  margin: 0 !important;
}

/* Icono */
.loginFormField .accessImage{
  width: 18px;
  height: 18px;
  opacity: .75;
  display:block;
  margin: 0 !important;
}

/* Input */
.loginFromInput{
  width: 100% !important;
  height: 36px;
  border: 0 !important;
  outline: none !important;

  background: transparent !important;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 0 !important;
  margin: 0 !important;
}

.loginFromInput{
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.loginFromInput:-webkit-autofill{
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #081d3b !important;
}


.loginFromInput::placeholder{
  color: rgba(100,116,139,.85);
  font-weight: 700;
}

/* Focus */
.loginFormField:focus-within{
  border-color: rgba(47,127,234,.35);
  box-shadow: 0 0 0 4px rgba(47,127,234,.14), var(--shadowSoft);
}

/* Botón */
#buttonFormField{
  margin-top: 8px !important;
}

#loginFormAccessButton.submitButton{
  width: 100% !important;
  min-width: 0 !important;

  border: 0 !important;
  border-radius: 14px !important;

  padding: 12px 14px !important;
  font-weight: 950 !important;
  font-size: 14px !important;
  cursor: pointer;

  color: #fff !important;
  background: linear-gradient(135deg, #081d3b, #143a78);
  box-shadow: 0 14px 34px rgba(8,29,59,.25);

  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

#loginFormAccessButton.submitButton:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(8,29,59,.32);
  filter: brightness(1.02);
}

#loginFormAccessButton.submitButton:active{
  transform: translateY(0px);
  box-shadow: 0 12px 28px rgba(8,29,59,.24);
}

/* Ajuste: si quieres que aparezca a la izquierda como en tu captura */
@media (min-width: 900px){
  #unlogedFrame{
    justify-content: flex-start;
  }
  #loginFormContainer{
    margin-left: 80px; /* similar a tu captura */
  }
}


@media screen and (max-width: 600px){
    #loginFormContainer{margin-top: 10px; border: none; -webkit-box-shadow: 0px 0px 0px #fff; -moz-box-shadow: 0px 0px 0px #fff; box-shadow: 0px 0px 0px #fff; width: auto !important;}
    #unlogedCRMlogo{float: none; height: 60px;}
    #loginFormContainer form{margin: 40px auto;}
}

