﻿:root {
    --card-border-color: #499dc2;
    --card-background-color: #2287b9;
    --card-border-radius: 24px;
    --input-border-radius: 16px;
    --button-height: 3.4rem;
    --button-radius: 1.7rem;
    --secondary-button-height: 2rem;
    --primary-color: #37c8be;
    --primary-hover-color: #35beb4;
    --box-shadow: 0px 0px 16px -12px rgba(66, 68, 90, 1);
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Open Sans', 'monospace', Arial, sans-serif !important;
    background: url('/qualo_background.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.qualo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow-y: auto;
}

.qualo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding-top: 2rem;
}

.qualo-image {
    width: 250px;
    max-width: 90%;
    margin: 0 0 2rem;
}

.qualo-image img {
    width: 100%;
}

.advanced-metrics-image {
    width: 200px;
    max-width: 90%;
    margin-top: 4rem;
}

.advanced-metrics-image img {
    width: 100%;
}

.qualo-card {
    display: flex;
    flex-direction: column;
    width: 35rem;
    max-width: 98%;
    padding: 2rem 0.5rem 1rem;
    border: 2px solid var(--card-border-color);
    background-color: var(--card-background-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    overflow-x: hidden;
}

.info-message {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.btn.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 100%;
}

.btn.btn-primary:hover, .btn.btn-primary:active {
    background-color: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color);
}

.btn:not(.btn-link) {
    height: var(--button-height);
    border-radius: var(--button-radius) !important;
    text-transform: uppercase;
    font-weight: bold !important;
    font-size: 1rem;
}

.btn.btn-context {
    height: var(--secondary-button-height);
    line-height: 1rem;
}

.btn.btn-link {
    color: #fff;
    text-decoration: none;
}

.form-control, .form-select {
    border-radius: var(--input-border-radius) !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: var(--box-shadow);
}

.form-select {
    padding-bottom: 0.425rem;
}

.password-progress-wrap {
    margin-top: 5px;
    height: 16px;
    border-radius: 8px;
    background-color: #ddd;
}

.score-result, .score-strength {
    align-items: center;
    font-size: .75rem;
    color: #fff;
}

.password-progress-wrap {
    margin: 5px;
    height: 8px;
    border-radius: 8px;
    background-color: #ddd;
}

.password-progress-bar {
    width: 0;
    height: 100%;
    border-radius: 8px;
    transition: width 400ms ease-in;
}

.password-progress-bar.level0 {
    width: 20%;
    background-color: #CC0000;
}

.password-progress-bar.level1 {
    width: 40%;
    background-color: #f50;
}

.password-progress-bar.level2 {
    width: 60%;
    background-color: #fdb216;
}

.password-progress-bar.level3 {
    width: 80%;
    background-color: #F7DC62;
}

.password-progress-bar.level4 {
    width: 100%;
    background-color: var(--primary-color);
}

.additional {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 0;
}

.error-messages ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    margin-bottom: 20px;
}

.error-message {
    color: #fff;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.informations {
    color: #fff;
    white-space: normal; 
    overflow-wrap: break-word; 
    word-wrap: break-word;
}

.description {
    color: #fff;
}

.question-primary {
    color: #fff;
    font-weight: bold;
}

.signature-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}

.signature-label {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.signature-input {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.signature-canvas {
    box-sizing: border-box;
    border: 2px solid var(--primary-color);
    border-radius: var(--input-border-radius);
    box-shadow: var(--box-shadow);
    background-color: #ffffff !important;
}

.invalid-feedback {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@media (min-width: 576px) {
    .qualo-card {
        padding: 4rem 2rem 2rem;
    }
}

@media (min-height: 768px) {
    .qualo-wrapper {
        min-height: 650px;
        padding-top: 0;
    }
}

.score-result, .score-strength {
    align-items: center;
    font-size: .75rem;
    color: #fff;
}

.password-progress-wrap {
    margin: 5px;
    height: 8px;
    border-radius: 8px;
    background-color: #ddd;
}

.password-progress-bar {
    width: 0;
    height: 100%;
    border-radius: 8px;
    transition: width 400ms ease-in;
}

.password-progress-bar.level0 {
    width: 20%;
    background-color: #CC0000;
}

.password-progress-bar.level1 {
    width: 40%;
    background-color: #f50;
}

.password-progress-bar.level2 {
    width: 60%;
    background-color: #fdb216;
}

.password-progress-bar.level3 {
    width: 80%;
    background-color: #F7DC62;
}

.password-progress-bar.level4 {
    width: 100%;
    background-color: var(--primary-color);
}

.form-check {
    margin-top: 2em !important;
    margin-bottom: 2em !important;
}

.form-check-label {
    color: #fff !important;
}

.announcement-content {
    width: 100%;
    background: #fff;
    color: #000;
    padding: 1rem !important;
    border: 2px solid var(--card-border-color);
    border-radius: 8px;
    overflow-y: auto;
    white-space: unset !important;
}

.announcement-content li {
    list-style-type: unset !important;
    padding-left: unset !important;
}

.announcement-content p {
    margin-bottom: 1rem !important;
}