/* ==================
LOGIN PAGE 
==================== */
.loginBox {
  margin: 30px;
}

.login-page {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
}

.login-navbar {
  position: relative;
  z-index: 2;

  margin-bottom: 0;

  border: none;

  background: var(--login-white);

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.login-navbar .navbar-brand {
  color: var(--login-primary-text) !important;

  font-weight: 600;
  letter-spacing: 0.3px;
}

.login-wrapper {
  position: relative;
  z-index: 2;

  min-height: calc(100vh - 70px);

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

  gap: 110px;

  padding: 30px 60px;
}

.login-brand-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo {
  width: 440px;
  max-width: 42vw;
  height: auto;
}

/* CARD */

.login-card {
  width: 100%;
  max-width: 430px;

  background: var(--login-white);

  border-radius: 6px;
  min-height: 510px;
  border: 1px solid var(--border-color);

  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.10);

  overflow: hidden;
}


.login-form-section {
  padding: 42px 30px 34px;
}


.login-top-icon {
  width: 74px;
  height: 74px;

  margin: 0 auto 20px;

  border-radius: 50%;

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

  background: var(--login-secondary);

  border: 2px solid var(--login-tertiary);
}

.login-top-icon span {
  color: var(--login-primary);
  font-size: 32px;
}

.login-title {
  color: var(--text-dark);

  font-size: 21px;
  font-weight: 700;

  text-align: center;

  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--login-muted);

  font-size: 14px;
  line-height: 1.5;

  text-align: center;

  margin-bottom: 28px;
}

.login-input-wrapper {
  position: relative;
}

.login-input-icon {
  position: absolute;

  top: 50%;
  left: 18px;

  transform: translateY(-50%);

  color: var(--login-primary);

  font-size: 17px;

  z-index: 2;
}

.login-input {
  width: 100%;
  height: 52px;

  padding-left: 48px;
  padding-right: 18px;

  border: 1px solid var(--login-input-border);
  border-radius: 6px;

  background-color: var(--login-white);

  font-size: 15px;

  color: var(--text-dark);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.login-input-password {
  padding-right: 52px;
}

.login-input::placeholder {
  color: var(--login-muted);
}

.login-input:focus {
  outline: none;

  border-color: var(--login-tertiary);

  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.12);
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--login-white) inset !important;
}

.login-password-toggle {
  position: absolute;

  top: 50%;
  right: 18px;

  transform: translateY(-50%);

  cursor: pointer;

  color: var(--login-secondary-text);

  font-size: 17px;
}

/* BUTTON */

.login-button {
  width: 100%;
  height: 52px;

  border: none;
  border-radius: 6px;

  background: var(--login-primary);

  color: var(--login-white);

  margin-top: 18px;
}

.login-button:hover {
  background: var(--login-tertiary);
}

.login-button:active {
  transform: scale(0.98);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-button span {
  font-size: 15px;
  font-weight: 600;
}

/* ALERT */

.login-alert {
  border-radius: 6px;
  margin-top: 18px;
}

.login-links {
  margin-top: 24px;

  text-align: center;
}

.login-link {
  font-size: 13px;

  color: var(--login-primary);

  text-decoration: none;

  font-weight: 500;
}

.login-link:hover {
  color: var(--login-primary);
  text-decoration: none;
}

.login-adfs {
  margin-top: 22px;
  padding-top: 22px;

  border-top: 1px solid var(--border-color);
}

/* ==================
RECOVERY PAGE 
==================== */

.recovery-page {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
}

.recovery-wrapper {
  position: relative;
  z-index: 2;

  min-height: calc(100vh - 70px);

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

  padding: 30px 20px;
}

/* CARD */

.recovery-card {
  width: 100%;
  max-width: 430px;

  background: var(--login-white);

  border-radius: 6px;

  border: 1px solid var(--border-color);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.10);

  overflow: hidden;
}

.recovery-form-section {
  padding: 42px 30px 34px;
}

.recovery-top-icon {
  width: 74px;
  height: 74px;

  margin: 0 auto 20px;

  border-radius: 50%;

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

  background: var(--login-secondary);

  border: 2px solid var(--login-tertiary);
}

.recovery-top-icon span {
  color: var(--login-primary);
  font-size: 30px;
}

.recovery-title {
  color: var(--text-dark);

  font-size: 21px;
  font-weight: 700;

  text-align: center;

  margin-bottom: 8px;
}

.recovery-subtitle {
  color: var(--login-muted);

  font-size: 14px;
  line-height: 1.5;

  text-align: center;

  margin-bottom: 24px;
}

.recovery-input-wrapper {
  position: relative;
}

.recovery-input-icon {
  position: absolute;

  top: 50%;
  left: 18px;

  transform: translateY(-50%);

  color: var(--login-primary);

  font-size: 16px;

  z-index: 2;
}

.recovery-input {
  width: 100%;
  height: 52px;

  padding-left: 48px;
  padding-right: 18px;

  border: 1px solid var(--login-input-border);
  border-radius: 6px;

  background-color: var(--login-white);

  font-size: 15px;

  color: var(--text-dark);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.recovery-input::placeholder {
  color: var(--login-muted);
}

.recovery-input:focus {
  outline: none;

  border-color: var(--login-primary);

  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* BUTTONS */

.recovery-actions {
  display: flex;
  gap: 12px;

  margin-top: 26px;
}

.recovery-button {
  flex: 1;

  height: 52px;

  border: none;
  border-radius: 6px;

  background: var(--login-primary);

  color: var(--login-white);
  font-size: 15px;
  font-weight: 600;


  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.recovery-button span {
  font-size: 15px;
  font-weight: 600;
}

.recovery-button:hover {
  background: var(--login-primary-hover)
}

.recovery-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.recovery-button-secondary {
  background: var(--login-white);

  border: 1px solid var(--login-button-secondary-border);

  color: var(--login-button-secondary-border);

  font-size: 15px;
  font-weight: 600;

  min-width: 100px;

  border-radius: 6px;
}

.recovery-button-secondary:hover {
  background: var(--login-white);

  border-color: var(--login-primary);

  color: var(--login-primary);
}

/* RECUPERO STEP 2 */

.recovery-top-icon-check .glyphicon {
  position: relative;
  top: 1px;
  left: 1px;
}

.recovery-top-icon-check span {
  font-size: 28px;
}

/* ==================
PROFILE PAGE
==================== */

.recovery-label {
  display: block;

  margin-bottom: 10px;

  color: var(--login-secondary-text);

  font-size: 14px;
  font-weight: 600;
}

.recovery-actions-right {
  justify-content: flex-end;
}

.recovery-top-icon-password .glyphicon {
  position: relative;
  top: 1px;
  left: 1px;
}

.login-panel {
  border-width: 0;
  margin: 0 auto;
  width: 1000px;
  position: relative;
}

.recovery-panel {
  margin: 0 auto;
  width: 500px;
  position: relative;
}

/* ==================================================
   FEDERSIF - CARD ISTITUZIONALE
   CODICE CLIENTE 8
================================================== */

.federsif-brand-card {
  width: 600px;
  max-width: 48vw;

  display: flex;
  flex-direction: column;

  background: var(--login-white);

  border: 1px solid rgba(15, 55, 105, 0.10);
  border-radius: 6px;

  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);

  overflow: hidden;
  height: 510px;
}


/* ==================================================
   SEZIONE 1
   LOGO FEDERSIF
================================================== */

.federsif-logo-section {
  min-height: 120px;

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

  padding: 34px 45px 28px;
}

.federsif-main-logo {
  display: block;

  width: auto;
  max-width: 100%;
  height: auto;

  max-height: 70px;

  object-fit: contain;
}


/* ==================================================
   SEZIONE 2
   LOGHI ED EMBLEMI ISTITUZIONALI
================================================== */

.federsif-institutional-section {
  position: relative;

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

  margin: 0 28px;

  padding: 40px 0px;
}


.federsif-institutional-section::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 1px;

  background: rgba(20, 76, 140, 0.16);
}

.federsif-institutional-section::after {
  content: "";

  position: absolute;

  bottom: 0;
  left: 42px;
  right: 42px;

  height: 1px;

  background: rgba(20, 76, 140, 0.13);
}


.federsif-institutional-banner {
  display: block;

  width: 100%;
  max-width: 510px;
  height: auto;

  object-fit: contain;
}


/* ==================================================
   SEZIONE 3
   TESTO FINANZIAMENTO
================================================== */

.federsif-funding-section {
  padding: 24px 34px 34px;
}


.federsif-funding-text {
  max-width: 525px;

  margin: 0 auto;

  color: var(--login-primary);

  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;

  text-align: center;
}


.federsif-funding-notice {
  display: block;

  margin-top: 3px;

  font-size: 15px;
  font-weight: 700;
}

/* ==================================================
   LOGIN RESPONSIVE
================================================== */

@media screen and (max-width: 1200px) {

  .login-wrapper {
    gap: 55px;

    padding-right: 35px;
    padding-left: 35px;
  }

  .federsif-brand-card {
    width: 540px;
  }

  .federsif-logo-section {
    padding-right: 35px;
    padding-left: 35px;
  }

  .federsif-funding-text {
    font-size: 13px;
  }

}


@media screen and (max-width: 950px) {

  .login-wrapper {
    flex-direction: column;

    gap: 35px;

    padding: 40px 25px;
  }

  .federsif-brand-card {
    width: 100%;
    max-width: 600px;
  }

  .login-card {
    max-width: 600px;
  }

}


@media screen and (max-width: 600px) {

  .login-wrapper {
    padding: 25px 15px;
  }


  .federsif-brand-card {
    max-width: 100%;

    border-radius: 14px;
  }


  .federsif-logo-section {
    min-height: auto;

    padding: 25px 25px 22px;
  }


  .federsif-main-logo {
    max-height: 90px;
  }


  .federsif-institutional-section {
    margin: 0 18px;

    padding: 22px 8px;
  }


  .federsif-funding-section {
    padding: 20px 22px 26px;
  }


  .federsif-funding-text {
    font-size: 12px;
    line-height: 1.6;
  }


  .federsif-funding-notice {
    font-size: 13px;
  }

}

.federsif-banner {
	display: block;

	width: 100%;
	max-width: 550px;
	height: auto;

	margin-top: 30px;
}


.federsif-description {
	max-width: 650px;

	color: var(--login-primary);

	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

/* =================================
   LOGIN ALERT
================================= */

.login-alert {
	width: 100%;
	margin: 18px 0 20px;

	padding: 12px 14px;

	display: flex;
	align-items: center;

	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;

	color: var(--danger);
	background-color: rgba(220, 53, 69, 0.08);

	border: 1px solid rgba(220, 53, 69, 0.2);
	border-radius: 6px;

	box-shadow: none;
}