:root {
    --fism-font: 'Montserrat', Arial, sans-serif;
    --fism-blue: #0072BC;
    --fism-light-blue: #29ABE2;
    --fism-green: #5AA144;
    --fism-yellow: #FBB03B;
    --fism-orange: #F15A24;
    --fism-gradient: linear-gradient(90deg, var(--fism-blue), var(--fism-light-blue), var(--fism-green), var(--fism-yellow), var(--fism-orange));
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    padding: 40px 15px;
    background-color: #f5f5f5;
    font-family: var(--fism-font);
    overflow-y: auto;
    display: block;
}

/* Wrapper che centra SOLO se c'è spazio */
.auth-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* form sizing */
.form-verify, .form-reset, .form-signin, .form-confirm {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.forms {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 576px) {
    .forms {
        padding: 15px !important;
        margin: 15px !important;
    }
}

.form-control:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.btn + .btn {
    margin-left: 10px;
}

.alert {
    font-size: 0.95rem;
    position: fixed;
    top: 10%; 
    left: 50%; 
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    z-index: 1050;
    transition: opacity 1s ease-out;
    opacity: 1;
}

.alert.fade-out {
    opacity: 0;
}

.form-grouped .form-floating:not(:last-child) input {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-grouped .form-floating:not(:first-child) input {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -1px;
}

.auth-links {
    margin-top: 15px;
}

.auth-links a {
    display: block;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--fism-blue);
}

.btn-fism {
    background-color: var(--fism-blue); 
    border: 2px solid var(--fism-blue);
}

.auth-links a:hover {
    text-decoration: underline;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.text-justified {
    text-align: justify;
}