/*
 * cas.css ownership:
 * - keep CAS/base reset behavior and social/provider button library
 * - avoid product/theme styling here when common.css already owns it
 */

/*
 * Base resets and generic elements
 */

body {
  font-size: 14px;
  font-family: Graphik Regular;
  background-color: #ffffff;
  line-height: 20px;
}
button, input, select, textarea {
    line-height: 25.5px;
}
nav ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote::before, blockquote::after, q::before, q::after {
  content: '';
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
  color:blue;
}

a:link, a:visited {
  color: #257bb2;
}

a:hover {
  color: #a0b757;
}

p {
  margin-bottom: 1.4em;
}

header {
  overflow: hidden;
  padding: 20px 0;
}

header h1 {
  float: right;
  width: 119px;
  height: 60px;
  background: url(/cas/images/cas-logo-da0f65648a95f6a278fca5afd64ef0c6.png) no-repeat;
  text-indent: -999em;
  color: white;
}

ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title], dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}

input, select {
  vertical-align: middle;
}

.login #container, .error #container, .success #container {
/*  width: min(1380px, 96vw);*/
  max-width: none;
}

.logout #container {
  width: 100%;
  max-width: none;
}


#logo {
  display: block;
  background: url(/cas/images/apereo-logo-adf2b133725f19a21c7c144111fef2ba.png) no-repeat;
  text-indent: -999em;
  float: left;
  height: 100px;
  width: 80%;
  margin-right: 40px;
  border: 0px;
  color: white;
}

#content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}
span.ux {
    font-weight: unset !important;
}
#loadingMessage {
  font-size: 1.4rem;
}

.modal {
  display: none;
}

@media screen and (min-width: 1280px) {
  #ssosessions-page #container {
    width: 1280px;
  }
}

@media only screen and (max-width: 960px) {
  header {
    padding: 20px;
  }
  #container {
    width: 100%;
  }
  #content {
    border-radius: 0px;
    padding: 0;
  }
}

@media only screen and (max-width: 855px) {
  #logo {
    display: none;
  }
  header h1 {
    font-size: 1em;
    width: 70px;
    height: 40px;
    background-size: 70px 40px;
  }
}


/*
 * CAS structural overrides kept for compatibility
 */
.login #content, .error #content, .success #content {
  background: transparent;
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error #content {
	width: 100%;
}
#login {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
  vertical-align: top;
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

/*
 * Removed unused button classes: btn-restart, btn-refresh, btn-shutdown (no references found in templates or Java code)
 * Previously also removed: social/provider button library (btn-social and related provider classes)
 */

/**
 * Items that need a home
 */
.row-eq-height {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

#alertBox {
  display: none;
}
.fa-question-size{
	font-size: 12px;
}
.fa-lock-size{
	font-size: 21px;
}
#username.disabled{
	border-color: grey !important;
    background-color: #d9d9d9;
    color: #999;
}
#titleExpiracy, #titleRecovery, #titleLogout, #titleLogin, #titleRegistration{
	display:none;
}
span.fa.fa-circle.fa-stack-2x.italic,
span.fa.fa-unlock.fa-stack-1x.fa-inverse.italic{
	font-style:italic;
}
#optanon-minimize-wrapper #optanon-minimize-button {
    font-family: Arial;
    -webkit-text-size-adjust: none;
    font-size: .9em;
    color: #000;
    margin: auto;
    text-decoration: none;
    position: relative;
    background-color: #d7d7d7; 
    background-repeat: no-repeat;
    border: solid;
    border-color: #333;
    cursor: pointer;
    overflow: hidden;
    border-width: 1px;
    padding: 10px;
    border-radius: 8px;
    position: fixed; 
    right: 0;
    bottom: 0;
    z-index: 1;
}
ul.no-bullets {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.imgOK, .imgKO, .bullet {
    width: 0.75rem;
    height: 0.75rem;
    background-size: 0.75rem !important;
    display: inline-block;
    padding-right: 1.25em;
}
.imgKO {
    background: url(/cas/images/common/circleKO-01d11d8e76dd38f242b032854c1a2efb.png) no-repeat;
}
.imgOK {
    background: url(/cas/images/common/circleOK-ebbd4e0da42ea4a342c92cd0947d7654.png) no-repeat;
}
.bullet {
    background: url(/cas/images/common/circle-8966076dd3d3dacb0a5d01c839bec0ad.png) no-repeat;
}
.validatefield {
    display: none;
}
#passwordRules{
    display: none;
}
.languages.ux .dropbtn {
    margin-right: 0;
}
.dropbtn {
    background-color: transparent;
    border: 1px solid;
    margin-right: 1.1em;
    padding-top: 0.5em;
	padding-left: 0.5em;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-bottom: 0.8em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 
        0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 0.5em 0.5em 0.5em 0.5em;
    text-decoration: none;
    display: block;
    height: 2.25em;
}

.dropdown-content a:hover {
    background-color: #f1f1f1
}

.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown:hover .arrowDown {
    display: none;
}
.dropdown:hover .arrowUp {
    display: initial;
}
.overflowy{
	height: 20em !important;
    overflow: overlay !important;
    margin-bottom:1em;
    padding-right:2em;
}
/* width */
#textCookie ::-webkit-scrollbar {
  width: 10px !important;
}

/* Track */
#textCookie ::-webkit-scrollbar-track {
  background:#f1f1f1 !important;
  border-radius: 10px;
}
#login.ux input:not([type="submit"]):not(.l2e-input):not(.l2e-otp-digit), 
#fmSelfRegistration.ux input:not([type="submit"]){
	border-color: #555555 !important;
	/*width: 97% !important;*/
	background: none !important;
}
#login.ux select{
	border-color: #ECEDED;
	border-bottom-color: #ECEDED;
	width: 98% !important;
}

 
/* Handle */
#textCookie ::-webkit-scrollbar-thumb {
  background: var(--main_header_color,888) !important;
  border-radius: 10px;
}

/* Handle on hover */
#textCookie ::-webkit-scrollbar-thumb:hover {
  background: var(--main_header_color,555) !important;
}

#fmLinkEmail > p {
	 line-height:20px;
	 margin-top:1em;
}
.col-md-12 {
	flex: 0 0 100% !important;
    max-width: 100% !important;
}
.row>*{
	padding-left: 0;
	padding-right: 0;
}
*, ::after, ::before {
    box-sizing: border-box;
}
#fmSuccess{
	width: auto;
}
.dropdown:hover{
	border-bottom-color: #460073;
    border-bottom-style: solid;
    border-bottom-width: 5px
}
#logo1 img {
  width: 5em;
  margin: 1em;
}
#programFirstLevel, #program{
	border-style: solid !important;
	border-color: black !important;
	/*width:95% !important;*/
}

/* Unified login layout for all tenants */
#formbox,
#formbox.ux {
  width: 100% !important;
  max-width: 1320px;
  margin: 0 auto;
}

#formbox.row {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

#content {
  padding: 0;
}

/* Layout grid for split forms is handled by common.css .box-2-split.
   Only apply sizing/spacing here, scoped to the login split form. */
#login.box-2-split {
  max-width: 1240px;
  width: 94%;
  margin: 0px auto 40px auto;
  padding: 0px 0px 20px 0px;
}

#login .l2e-login-illustration,
#selfregistrationbox .l2e-register-illustration {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto !important;
}

#login .l2e-login-illustration img,
#selfregistrationbox .l2e-register-illustration img {
  width: 100%;
  max-width: 620px;
  max-height: 430px;
  object-fit: contain;
  object-position: center;
}

#login .l2e-login-panel, #login .l2e-conditions-panel {
  width: 100%;
}

#login .l2e-login-title-wrap {
  margin-bottom: 18px;
}

#login .l2e-login-title {
  margin: 0 0 8px 0;
  line-height: 1.06;
}

#login .l2e-login-subtitle {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: normal;
}

#login .l2e-link {
  color: blue;
  text-decoration: none;
}

#login .l2e-link:hover,
#login .l2e-link:focus {
  text-decoration: underline;
}

/*#login #fm1 {
  margin-top: 22px;
}*/

#login .l2e-field {
  margin-bottom: 16px;
}

#login .l2e-label {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 17px;
  font-weight: 600;
}

#login .l2e-required {
  color: #dc2626;
  display: inline-block;
  margin-right: 0.22rem;
  line-height: 1;
  vertical-align: baseline;
}

#login .l2e-input {
  width: 100% !important;
  height: 56px;
  padding: 10px 14px;
  border: 1px solid #9ca3af !important;
  border-radius: 0;
  background: #ffffff !important;
  font-size: 17px;
  color: #111827;
}

.l2e-input:focus {
  border-color: #8a14ff !important;
  outline: 2px solid rgba(138, 20, 255, 0.2);
  outline-offset: 0;
}

#login .l2e-password-wrap {
  position: relative;
}

#login #eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
}

#login .l2e-login-meta {
  margin: 10px 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#login .l2e-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: #111827;
}

#login .l2e-remember input {
  width: 18px;
  height: 18px;
}

#login .l2e-btn-row {
  margin-top: 8px;
}

#login .l2e-submit {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 0;
  background: linear-gradient(90deg, #8a14ff 0%, #a000ff 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

#login .l2e-submit:hover,
#login .l2e-submit:focus {
  background: linear-gradient(90deg, #7a12e2 0%, #8c00e0 100%);
}

@media (max-width: 767px) {
  #login.box-2-split {
    max-width: 780px;
    width: 100%;
    margin-top: 12px;
  }

  #login .l2e-login-illustration,
  #selfregistrationbox .l2e-register-illustration {
    min-height: 220px;
  }

  #login .l2e-login-illustration img,
  #selfregistrationbox .l2e-register-illustration {
    max-height: 280px;
  }

  #login .l2e-login-title {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  #login.box-2-split {
    padding: 8px 0 10px 0;
  }

  #login .l2e-login-title {
    font-size: 30px;
  }


  #login .l2e-label,
  #login .l2e-remember {
    font-size: 15px;
	line-height: normal;
  }

  #login .l2e-login-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  #login .l2e-submit {
    font-size: 22px;
    min-height: 52px;
  }
}

@media (max-width: 767px) {
  #login .l2e-login-illustration,
  #selfregistrationbox .l2e-register-illustration,
  #formbox .l2e-recovery-illustration, #formbox .l2e-change-illustration, .success #success .l2e-success-illustration  {
    display: none;
  }

  #login.box-2-split, #success.box-2-split {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
  }

  #login .l2e-login-panel,
  #login .l2e-conditions-panel,
  #selfregistrationbox .l2e-register-panel {
    padding-left: 0 !important;
  }
}

/* --- MFA OTP digit-box design --- */
#fmMfa .l2e-mfa-email {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin: 0.25rem 0 1rem;
}

#fmMfa .l2e-otp-wrap {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem auto;
}

#fmMfa .l2e-otp-digit {
  width: 4rem !important;
  height: 4rem !important;
  text-align: center;
  font-size: 1.85rem !important;
  font-weight: 600;
  border: 1.5px solid #ccc !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 0 !important;
  flex-shrink: 0;
  outline: none;
  box-sizing: border-box;
  caret-color: transparent;
}

#fmMfa .l2e-otp-digit:focus {
  border-color: #555 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

#main-container-error .enunciado1.logo {
  width: 15rem;
}
