/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

:root {
  --color-accent: #8ecc2e;
  --color-primary-dark: #004580;
  --color-primary-light: #1b6ec2;
  --color-primary-border: #1861ac;
  --color-accent-shade: #78B021;
  
  --color-secondary: #8BC34A;
  --color-secondary-dark: #7cb342;
  
  --color-border-light: #e5e5e5;
  --color-border: #dee2e6;
  
  --color-danger: #FF5757;
  --color-focus: #80bdff;
  --color-focus-shadow: rgba(0, 123, 255, 0.25);
  --color-shadow: rgba(0, 0, 0, 0.05);
  --color-shadow-card: rgba(0, 0, 0, 0.1);
  --color-gray-100: #F4F4F4;
  --font-family: 'Nunito', system-ui, -apple-system Arial, sans-serif;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito/Nunito-VariableFont_wght.ttf') format("truetype-variations");
  font-weight: 1 999;
  font-stretch: 75% 125%;
  font-style: normal;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito/Nunito-Italic-VariableFont_wght.ttf') format("truetype-variations");
  font-weight: 1 999;
  font-stretch: 75% 125%;
  font-style: italic;
}

* {
  font-family: var(--font-family);
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: var(--color-accent);

  &:hover {
    color: var(--color-accent);
  }
}

a.disabled {
  pointer-events: none;
  text-decoration: none;
  opacity: .65;
}

.btn {
  border-radius: 0.625rem;
}

.btn-primary {
  color: #fff;
  background-color: var(--color-accent);
  border-color: var(--color-primary-border);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-border);
}

.btn-success {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-success:not(:disabled):hover {
  background-color: var(--color-accent-shade);
  border-color: var(--color-accent-shade);
}

.btn:disabled {
  background-color: var(--color-accent-shade);
  border-color: var(--color-accent-shade);
  opacity: 0.65;
}

.btn-success:not(:disabled):not(.disabled).active, .btn-success:not(:disabled):not(.disabled):active, .show>.btn-success.dropdown-toggle { 
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}

.border-top {
  border-top: 1px solid var(--color-border-light);
}

.border-bottom {
  border-bottom: 1px solid var(--color-border-light);
}

.box-shadow {
  box-shadow: 0 .25rem .75rem var(--color-shadow);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.card {
  border-radius: 15px;
  box-shadow: 0 0 15px var(--color-shadow-card);
  border: none;
}

hr {
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.input-group-text {
  background-color: transparent;
  border-left: none;
  cursor: pointer;
  border-radius: 20px;
}

label.required::after {
  content: " *";
  color: var(--color-danger);
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.input-group-text .fa-exclamation-circle {
  color: var(--color-danger);
}

.body-container {
  background-color: var(--color-gray-100);
}

.form-control {
  padding: 0.5rem 0.75rem;
  border-radius: 20px;

  &.input-validation-error {
    border-color: var(--color-danger);  
  }
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-append .input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-group small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.otp-inputs {
  gap: 8px;
}

.otp-input {
  max-width: 40px;
  height: 40px;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.otp-input:focus {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 0.2rem var(--color-focus-shadow);
}

.g-recaptcha {
  display: flex;
  justify-content: center;
}

.validation-summary-errors ul {
  padding-left: 0;
  list-style: none;
}

.password-icon {
  aspect-ratio: 1;
  width: 1rem;
}

/*https://github.com/italia/spid-aspnetcore?tab=readme-ov-file#compatibilit%C3%A0-con-bootstrap*/
.spid-idp-button * {
  box-sizing: content-box;
}

.spid-idp-button-link a {
  text-align: center;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 0;

  img {
    max-height: 70px;
  }
}

.site-header__origin-info--logo {
  align-self: start;
  margin-top: 0.25rem;
}

.gap {
  gap: 1rem;
}

.login-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
  max-width: 320px;
  min-width: 240px;
}

.login-button:hover {
  color: #ffffff;
  background-color: var(--color-accent-shade);
  text-decoration-line: none;
}

.login-button__text {
  margin-right: 8px;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
}

.login-button__action-container {
  display: inline-flex;
}

.login-button__action {
  margin-right: 10px;
  font-size: 25px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-button__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
}

.login-button__icon svg {
  width: 100%;
  height: 100%;
}

.register__divider-or {
  font-size: 18px;
  color: var(--color-primary-dark);
}
 
.body__header {
  text-align: center;
  margin-bottom: 2rem;
}

.body__title {
  text-transform: uppercase;
  text-align: center;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.body__title--divider {
  border-top: 2px solid var(--color-primary-dark);
}

.error {
  color: var(--color-danger);
}

.bg-primary {
  background-color: var(--color-primary-dark) !important;
}

.page-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 40px 0px;
}

.card-header--profile {
  background-color: transparent;
}

.spid-section {
  flex-direction: column;
  justify-items: center;
  align-items: center;
}

.spid-providers {
  display: flex;
  margin-bottom: 40px;
}

.spid-agidlogo {
  max-width: 250px;
}

.spid-info {
  position: relative;
  display: inline-block;
  margin-left: 6px;
}

.spid-info__button {
  background-color: #666;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.spid-info__button:hover {
  background-color: #333;
}

.spid-info__tooltip {
  position: absolute;
  top: 30px;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  display: none;
}

.spid-info__tooltip--show {
  display: block;
}

.spid-info__tooltip p {
  margin: 0 0 15px 0;
  color: #333;
}

.spid-info__section {
  margin-bottom: 12px;
}

.spid-info__section a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

.spid-info__section a:hover {
  text-decoration: underline;
}

.spid-info__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
}

.spid-info__overlay--show {
  display: block;
}

.access-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-shade));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.access-button:hover
{
  color: white;
  text-decoration: none;
}

.consent__info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
}

@media (min-width: 576px) {
  .me-sm-3 {
    margin-right: 1rem !important;
  }

  .mb-sm-0 {
    margin-bottom: 0 !important;
  }
  
  .login-button {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
}

@media (min-width: 992px) {
}

@media (min-width: 1200px) {
}

@media (min-width: 1400px) {
}