/*
 *  adAS-SSO
 * ================================================
 *
 * Copyright (C) 2026 - 2030 by Servicios de Directorio
 * Universidad de Valladolid
 *
 * *****************************************************************************
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 *
 * ************************************************************************** */
/*@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');*/
:root {
  --uva-azul: #003973;
  --uva-azul-suave: #0A4B7A;
  --uva-azul-resaltar: #0056B3;
  --uva-rosa: #c6004c;
  --uva-gris-oscuro: #6d6d6c;
  --uva-gris-claro: #dadada;
  --uva-gris-light: #f0f0f0;
  --uva-gris-texto: #434343;
  --uva-gris-ultralight: #F6F7F9;
  --uva-texto-normal: 0.9rem;
  --uva-texto-small: calc(var(--uva-texto-normal) * 0.85);
  --uva-texto-intermedio: 1.2rem;
  --lh: 1.7;
  --alto-text-input: 30px;
  --border-botones: 3px;
  --border-principal: 10px;
  --fuente-principal: "Libre Franklin", Arial, sans-serif;
  --fuente-secundaria: "Libre Franklin", Arial, sans-serif;
  /*--fuente-secundaria: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;*/
  /*--fuente-secundaria:  "Helvetica Neue", Helvetica, Arial, sans-serif;*/  
  --uva-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  
  --uva-fondo-gradient: linear-gradient(to top, #00315a 0%, #033862 30%, #4f6f95 100%);
  --uva-fondo-claustro-azuloscuro : var(--uva-azul-suave) url("../img/fondos/fondoClaustroAzulOscuro.jpg") top / cover;
 /* --uva-fondo-claustro-azulclaro : var(--uva-azul-suave) url("../img/fondos/fondoClaustroAzulClaro.jpg") top / cover;
  --uva-fondo-claustro-blanco: var(--uva-gris-light) url("../img/fondos/fondoClaustroBlanco.jpg") top / cover no-repeat;
  --uva-fondo-claustro-rosa :var(--uva-azul-suave) url("../img/fondos/fondoClaustroRosa.jpg") top / cover;
  --uva-fondo-letras-azulclaro: var(--uva-azul-suave) url("../img/fondos/fondoLetrasAzulClaro.png") center / cover;
  --uva-fondo-letras-azuloscuro: var(--uva-azul-suave) url("../img/fondos/fondoLetrasAzulOscuro.jpg") center / cover no-repeat;
  --uva-fondo-letras-blanco: var(--uva-gris-light) url("../img/fondos/fondoLetrasBlanco.png") top / cover no-repeat;*/
  --uva-fondo-principal: var(--uva-fondo-claustro-azuloscuro);
}

html,
body,
address,
blockquote,
div,
dl,
form,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
p,
pre,
table,
ul,
dd,
dt,
li,
tbody,
td,
tfoot,
th,
thead,
tr,
button,
map,
a,
abbr,
acronym,
b,
bdo,
big,
br,
cite,
code,
dfn,
em,
i,
img,
kbd,
q,
samp,
small,
span,
strong,
sub,
sup,
tt,
var,
legend,
fieldset {
  margin: 0;
  padding: 0;
}

html { font-size: 100%; }

body {
	 
  background: var(--uva-fondo-principal);
  color: var(--uva-gris-texto);
  text-align: center;
  font-family: var(--fuente-secundaria);
  font-size: var(--uva-texto-normal);
  line-height: var(--lh);
}
h1, h2, h3, h4, .subtitle, label {
	font-family: var(--fuente-principal);
}
img { border: 0; }

#blue_bar,
#f_blue_bar,
#cream_bar { width: 100%; }

#status_text6 {
  font-size: calc(var(--uva-texto-small) * 1.1);
  font-weight: 500;
}

#logo_letras, #logo_img { max-width: 400px; margin: 0px 10px 20px 0; }
#org_logo { margin: 10px; }

#header {
  margin: 10px 0;
  padding: 5px;
}

#submit_ok,
#status_close_session,
.button_class,
.form-col1,
.text-field-centered,
.text-field,
.button-layout,
#wayfotherlogin,
#qr_login,
.disabled_button,
.disabled_login,
.disabled_submit {
  border-radius: var(--border-botones);
  cursor:pointer;
  font-family: var(--fuente-secundaria);
}

#submit_ok:not(:disabled) { cursor: pointer; }
#submit_ok, #status_close_session, .button_class { border: 0; }

.text-field-centered, .text-field { border: 1px solid var(--uva-azul); }

#content h1, h1 { color: var(--uva-azul-suave); }
.exception_subtitle { color: var(--uva-azul); }

a,
#wayf_button_close,
#wayf_button_close2,
#qr_button_close2,
#notlogout,
.rowname { color: var(--uva-azul-suave); }

#remember_button {
  color: var(--uva-gris-oscuro);
  text-decoration: underline;
}

#copyright,
.notification .order { color: var(--uva-azul-suave); }

.more_info_button_cl a { color: var(--uva-azul); }

#submit_ok, #status_close_session, .button_class {
  background-color: var(--uva-azul);
  color: #fff;
  display: block;
  line-height: 28px;
  text-transform: uppercase;
  padding: 2px;
  text-align: center;
  margin-top: 20px;
  width: 100%;
  font-size: var(--uva-texto-normal);
}

.disabled { opacity: 0.8; }

#blue_bar { height: 30px; }
#content_debug { margin-top: 30px; }
#f_blue_bar { height: 10px; margin-top: 30px; }

a { text-decoration: none; }

.mods_row { margin-left: 8%; margin-right: 8%; }

.notes_texts { margin: 1em 0; }
.notes_texts p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin-inline: auto;
  text-align: center;
}

.disabled_login {
  background: #DDD;
  height: 27px;
  margin-top: -47px;
  position: absolute;
  width: 326px;
  z-index: 140;
}

.disabled_submit,
.disabled_login,
.disabled_button {
  opacity: 0.6;
  cursor: default;
}

#identificacion {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 10px;
}

.footer {
  text-align: center;
  width: 100%;
}

#copyright { font-size: 9pt; margin-top: 30px; }

.soporte {
  color: var(--uva-azul-suave);
  font-size: var(--uva-texto-small);
  margin-top: 30px;
}

.text-question,
p {
  font-size: var(--uva-texto-small);
  margin-bottom: .3em;
  color: var(--uva-gris-texto);
}

.text-field {
  height: var(--alto-text-input);
  width: 100%;
  padding: 0 0.5rem;
  margin: 0;
}

.centered-div { text-align: center; }

.text-field-centered {
  text-align: center;
  line-height: 20px;
  height: 20px;
}

.form-col1 { text-align: left; }
.form-col1 label {
  font-size: var(--uva-texto-normal);
  font-weight: 500;
  color: var(--uva-azul);
  text-transform: uppercase;
  
}

#auten_delegadas { padding: 0 20px 10px; width: 100%; max-width: 100%; margin-inline: 0; }
#auten_local { padding-top: 10px; }

.button-cont {
  line-height: 22px;
  z-index: 101;
  text-transform: uppercase;
}

.button-text {
  color: var(--uva-azul-suave);
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  padding: 5px;
  border-radius: var(--border-botones);
}

#multipleid_button { margin-top: 10px; }
#multiple_id .form-col2 select { height: 26px; margin-top: -46px; }

.login-box { display: block; padding-top: 0; height: auto; }

.wayf_button_cl { margin: 10px 0; }
.remember_button_cl { text-align: right; }

#remember_button, .more_info_button_cl a { font-size: var(--uva-texto-small); }

#userpass { margin-top: 20px; position: relative; }
#externalauth { margin-top: 1em; }

#status_subtitle,
.form-item div,
#userpass div { margin-bottom: 10px; }

#titulo_3col {
  font-size: inherit;
  color: var(--uva-azul);
  font-weight: 500;
  text-transform: uppercase;
}

#holder {
  margin: 5% 5% 0;
  width: 281px;
  text-align: center;
}

#otherlogin, #locallogin { text-align: center; }

#multiple_id {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.button_div { margin-bottom: 10px; }
button { margin-bottom: 7px; }

.error_msg { padding: 4px; margin-bottom: 4px; }
.error_subtitle { margin: 0 40px; }

.list-slo-sps {
  color: #000;
  font-size: var(--uva-texto-small);
  line-height: 150%;
  margin-bottom: .3em;
  padding-left: 1em;
}
.list-slo-sps li {
  margin-bottom: .3em;
  list-style: none;
  text-decoration: none;
}

.sp-nologout { color: #AF1111; }
#sp-logout-request { font-weight: 700; border-bottom: 1px solid #E0E0E0; }

.start_hidden { display: none; }
#notlogout { display: none; }

.highlight_lang {
  color: #fff;
  padding: 3px 10px;
  font-weight: 700;
  background-color: var(--uva-azul-suave);
}

#langs {
  float: right;
  margin: 10px 20px 2px 0;
  cursor: pointer;
}

#wayf_button {
  text-align: center;
  text-decoration: underline;
  font-weight: 500;
}

#wayf_button_close,
#wayf_button_close2,
#qr_button_close2 { cursor: pointer; }

#wayf_button_close_div,
#qr_button_close_div,
.form-col1 { width: 100%; }

#wayf_button_close_div,
#qr_button_close_div { text-align: right; }

#wayf_button_close:hover { cursor: pointer; }

#wayfholder {
  margin: 30px 0 20px;
  text-align: center;
  padding: 0 10%;
}
#wayfholder ul { margin-bottom: 10px; text-align: center; }
#wayfholder li {
  list-style: none;
  height: 100px;
}
#wayfholder li .own-button { width: 390px; }

#wayfotherlogin,
#qr_login,
#alert_qr_message_dialog {
  text-align: center;
  background-color: #F0F0F0;
  position: fixed !important;
  left: 50% !important;
  top: 12svh !important;
  transform: translateX(-50%) !important;
  width: min(500px, calc(100vw - 2rem)) !important;
  max-width: 500px !important;
  margin: 0 !important;
  padding: clamp(1rem, 3vw, 1.5rem) !important;
  min-height: 300px;
  border: 1px solid #E0E0E0;
  z-index: 999;
  box-shadow: var(--uva-shadow) !important;
}
#alert_qr_message_dialog {

 padding: 0px !important;
 background-color: var(--uva-azul-suave);
 color: white;
 min-height:auto;
  border: 0px;
  z-index: 1000;
 top: 6svh !important;
}

#background_modal {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(0, 0, 0, 0.3);
}

#tech_error_info { padding-bottom: 10px; }

.exception_trace {
  padding: 10px 15px;
  margin: 0;
  background: var(--uva-gris-light);
  text-align: left;
  border: 1px solid var(--uva-gris-claro);
}
.exception_subtitle { font-weight: 700; margin-top: 20px; }
.exception_title { margin-top: 20px; }
#footer_error { position: absolute; }

.text_ok { word-wrap: break-word; text-align:left}

.notification .order {
  font-size: var(--uva-texto-small);
  margin: 5px;
  font-weight: 700;
}
.notification h2 { margin-bottom: 20px; padding-top: 5px; }
.notification p { margin-bottom: 15px; }
.notification .error_msg p { margin-bottom: .3em; }
.notification .button_class { padding: 5px; /*margin: 20px 5px 5px; */}
.notification ul { margin-left: 30px; margin-bottom: 10px; }
#content .notification h1 { margin-left: 0; margin-right: 0; }
.notification li { color: #555; }
.notification .text-field-centered { margin: 0 auto; }

.notify_qr_main { position: relative; }
.notify_qr_img { position: absolute; }
.notify_qr_text { margin-left: 180px; }

#resync_hotp .text-field-2fa { margin-top: -28px; }

.qr_button_div,
.vk_button_div,
.show_pass_div {
  position: absolute;
  right: 0;
  margin-top: 4px;
  cursor: pointer;
}

.qr-cell:hover { cursor: pointer; }
.qr_button_style { height: 15px; width: 15px; }

.show_pass_icon {
  cursor: pointer;
  width: 20px;
  height: 20px;
  position: relative;
  left: 2px;
}

#edit-name-wrapper { margin-bottom: 1em; }

.warning-icon-st { float: left; margin-right: .3em; margin-top: .05em; }

.status_input_close { text-align: center; margin-top: 2em; }
#info_reload_qr { padding: 10px; }
#submit_reload_qr { margin-top: 2em; }

.form-col1-2fa {
  line-height: 22px;
  padding: 2px 2px 2px 10px;
  text-transform: uppercase;
}

.text-field-2fa {
  float: left;
  margin-left: 34%;
  font-size: 110%;
}
.text-field-2fa-single {
  float: none;
  font-size: 110%;
  text-align: center;
}

.icono-alerta { float: left; margin-right: .3em; }

#x509_dialog,
#qr_dialog,
#ott_dialog { max-width: 100%;}
#ott_dialog { z-index:1002 !important;}
#x509_dialog { text-align: justify;
z-index:1001 !important;}

#ott_submit_ok,
#ott_submit_ko,
#ott_reload_button {
  color: white;
  max-width: 100%;
}

#wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
}

#content {
  margin-bottom: 3vh;
  display: block;
  width: min(600px, 100%);
  background: #ffffff;
  /*border-radius: 22px;*/
  border-radius: var(--border-principal);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow:
    0 18px 40px rgba(16, 24, 40, 0.12),
    0 2px 8px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

#content:has(.module_cell) { width: min(980px, 100%); }
#content:has(#notification_2factor_title) { width: min(600px, 100%); }
#content:has(#debug) { width: min(700px, 100%); }
.module_cell:has(.disabled_button) { opacity: 0.6; pointer-events: none; cursor: default;background-color: var(--uva-gris-light);}

h1{
  font-size: clamp(1.35em, 0.45vw + 1.2em, 1.7em);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.9em;
  font-weight: 600;
  text-transform: uppercase;
}
h2{
  font-size: clamp(1.15em, 0.3vw + 1.1em, 1.35em);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 1.6em 0 0.5em;
  font-weight: 500;
  text-align: center;
}
h3{ font-size: 1.08em; line-height: 1.4; margin: 1.2em 0 0.35em; font-weight: 600; }
h4{ font-size: 1.02em; line-height: 1.45; margin: 1em 0 0.25em; font-weight: 600; }
small{ font-size: 0.9em; }

.modules_grid{
  display: grid;
  width: 100%;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.module_cell{
  justify-self: stretch;
  align-self: stretch;
  border-radius: var(--border-botones);
  padding: 25px 10px 40px 10px;
  box-shadow: var(--uva-shadow) !important;
  background-color: #fff;
  border: 1px solid var(--uva-gris-claro);
}
.module_cell > a{ display: block; width: 100%; }

.button-icon,
.button-text,
.button-layout{ width: 100%; }
.button-layout{
  position: relative;
  height: 62px;
}
.button-icon{
  position: absolute;
  inset: 0;
  height: 50px;
  max-height: 100%;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  border-radius: var(--border-botones);
  z-index: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; }
body { overflow-x: hidden; }

input, select, textarea, button{
  max-width: 100%;
  min-width: 0;
}

#identificacion > * { min-width: 0; }

p, a, .notes_texts p, pre{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.modules_grid{
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}

#texto_subtitulo{ margin-top: 0; }
#texto_titulo{ margin-bottom: 8px; }

#par, #auten_local{
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
#par .text-field{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 0.6rem;
}

#debug{
  text-align: left;
  padding: 0 10px;
}

.list-slo-sps, #status_text6 {
  font-weight: 600;
  padding: 10px 0;
  background-color: var(--uva-gris-light);
  text-align: center;
  border: 1px solid var(--uva-gris-claro);
}

#otp_buttons{ width: 100%; }

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#ott_module_label.button-text{ bottom: 0; }

button, .ui-dialog, .ui-dialog-titlebar, #ott_username, .button-class {
  border-radius: var(--border-botones) !important;
  cursor: pointer;
}
#input2factor{
	height: var(--alto-text-input);
}
.qr-cell{
	color: var(--uva-azul);
}
input:focus {
	border: 2px solid var(--uva-azul-resaltar) !important;
  outline: none;
}

.text-field:hover:not(:focus) {
  border-color: var(--uva-azul-suave);
  background-color: var(--uva-gris-ultralight);
}
 
#remember_button:hover {
  color: var(--uva-azul-resaltar);
}
 
.button_class:hover,#status_close_session:hover {
  background-color: var(--uva-azul-suave);
  cursor: pointer;
}
