﻿:root{
    --itarc-red-400: #cc0033;
    --itarc-red-500: #c41132;
    --itarc-red-600: #ab192d;
    
    --itarc-blue-400: #003366;
    --itarc-blue-500: #093158;
    --itarc-blue-600: #003057;
    
    --itarc-white: #ffffff;
    
    --itarc-font-family: roboto;

    --gray-50: #FAFAFA;
    --gray-200: #D3D3D3;
    --gray-700: #3A3A3A;
    --error-500: #F43F5E;
}

p.sub-title {
    word-wrap: break-word;
}

.page-title {
    margin-bottom: 4vh
}

.row-error {
    display: flex;
    flex-direction: column !important;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}


ul li::marker {
    color: red;
    font-size: 1.5em;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.formContent, .formContent input {
    text-align: center;
    margin: 5%;
    font-size: 20px;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: var(--itarc-red-500);
    border-color: var(--itarc-red-600);
    text-align: center;
}

.btn-secondary {
    color: var(--gray-700),;
    background-color: var(--itarc-white);
    border-color: var(--itarc-white);
    text-align: center;
}

.federation-button {
    border-radius: 0.125rem;
    background: var(--gray-50);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: var(--itarc-red-500);
    border-color: var(--itarc-red-600);
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 16px; 
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

body {
    /* Margin bottom by footer height */
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.bg-dark {
    background-color: var(--itarc-blue-500) !important;
}

main {
    font-family: roboto, monospace;
    font-size: 13px;
    line-height: 1.42857143;
    color: #5e5e5e;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.logo {
    height: 3.5rem;
}

button {
    background-color: indianred;
    color: white;
    border: 2px solid white;
    width: 200px;
    font-size: 22px;
}

    button:hover {
        background-color: lightgrey;
    }

.help {
    margin-top: 10px;
    text-align: center;
    /*align-items: center;*/
    padding: 15px;
}

div.footer-links {
    margin-top: 3vh;
    display: flex;
    flex-direction: column;
}

small.footer-link {
    margin: 1vh;
}

/* Style the button that is used to open and close the collapsible content */
.collapsible {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .collapsible:hover {
    background-color: #ccc;
}

/* Style the collapsible content. Note: hidden by default */
.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
}

input:-webkit-autofill {
    box-shadow: 0 0 0 1000px white inset;
}

.unselectable {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}

.itarc-card-body {
    display: inline-block;
    text-align: left;
    background-color: var(--itarc-white);
    z-index: 0;
    border-radius: 0.125rem;
    box-shadow: 0 16px 24px 0 rgba(0, 0, 0, 0.15);
    padding: 1.8rem;
}

.logo-navbar {
    width: 12rem;
}

@media (min-width: 0rem) {
    .itarc-card-body {
        width: 18rem;
        padding: 1rem;
    }
    .logo-navbar {
        width: 50vw;
        max-width: 12rem;
    }
    .itarc-card-wide,
    .itarc-card-body.itarc-card-wide{
        max-width: 18rem;
    }
}

@media (min-width: 22rem) {
    .itarc-card-body {
        width: 21rem;
        padding: 1.8rem;
    }
}

@media (min-width: 25rem) {
    .logo-navbar {
        width: 12rem;
    }
    .itarc-card-wide,
    .itarc-card-body.itarc-card-wide{
        max-width: 80vw;
        width: auto;
    }
}

@media (min-width: 51rem){
    .itarc-card-wide,
    .itarc-card-body.itarc-card-wide{
        max-width: 50rem;
        width: auto;
        min-width: 18rem;
    }
}

.link-text{
    font-size: 0.8rem;
    font-weight: 400;
}

.validation-summary-errors ul {
    /* rimuove i pallini di una lista */
    list-style-type: none;
    margin: 0;
    padding: 0;
}


.validation-summary-errors li::before {
    /*Target su elemento della lista (pallini)*/
    content: "⚠ ";
    color: var(--error-500);
    margin-right: 0.25rem;
}

.itarc-spinner{
    z-index: 2;
    background-color: rgba(0, 0 , 0, 0.5);
}

.loader-icon{
    width: 2.5rem;
    height: 2.5rem;
    animation: loader-pulse alternate 900ms infinite;
    top: 50%;
    left: 50%;
}

.loader-spin{
    content: "";
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 6.25rem;
    height: 6.25rem;
    border-top: 0.25rem solid var(--itarc-red-500);
    border-radius: 50%;
    -webkit-animation: loader-spin 1.8s infinite ease-in-out;
    animation: loader-spin 1.8s infinite ease-in-out;
    background-color: var(--itarc-white);
}

@keyframes loader-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    
    100% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes loader-spin{
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.visually-hidden {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.password-requisite{
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Container della progress bar (simula il "track") */
.progress-bar {
    width: 100%;                     /* Larghezza al 100% del contenitore */
    height: 0.4rem;                  /* Altezza personalizzata */
    background-color: #f3f3f3;         /* Sfondo del track */
    box-sizing: border-box;          /* Include padding e border nel calcolo delle dimensioni */
    border-radius: 10rem;             /* Arrotondamento completo */
    overflow: hidden;                /* Nasconde il contenuto in eccesso (utile per il border-radius) */
    box-shadow: inset 0 0 0.2em rgba(0, 0, 0, 0.2); /* Effetto "inset" per rilievo */
}

/* Elemento interno che rappresenta il "fill" (valore attuale) */
.progress-fill {
    height: 100%;
    width: 0;                       /* Valore iniziale impostato a 0% (lo si aggiorna tramite inline style o JS) */
    background-color: var(--itarc-blue-500); /* Colore della barra */
    border-radius: 10rem;            /* Arrotondamento per allinearsi al container */
    transition:  background-color 0.5s ease, width 0.5s ease;     /* Transizione smooth sulla proprietà 'width' */
}

.background-info {
    background-color: var(--itarc-blue-500)
}

.background-warning {
    background-color: #ff8d29;
}

.background-danger {
    background-color: var(--itarc-red-500)
}