/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

/* Container Principal */
.container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

/* Logo Section */
header.logo img {
    max-width: 120px;
    margin-bottom: 10px;
}

header.logo p {
    font-size: 0.9em;
    color: #777;
}

/* Section Connexion */
.connexion h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.input-group.enhanced {
    position: relative;
    margin-bottom: 20px;
}

.input-group.enhanced input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.input-group.enhanced input:focus {
    border-color: #0071bc;
    outline: none;
}

.input-group.enhanced .input-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #aaa;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #555;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0071bc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn.continue {
    background-color: #29c24e;
}

.btn.continue:hover {
    background-color: #555555;
}

.btn.open-account {
    background-color: #29c24e;
    margin-top: 10px;
}

.btn.open-account:hover {
    background-color: #005a99;
}

.btn .arrow {
    margin-left: 5px;
}

.links {
    margin-top: 10px;
}

.links a {
    display: block;
    font-size: 0.9em;
    color: #0071bc;
    text-decoration: none;
    margin: 5px 0;
}

.links a:hover {
    text-decoration: underline;
}

/* Section Client */
.client h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

/* Section Sécurité */
.security {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.security h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #0071bc;
}

.security p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}

.security a {
    color: #0071bc;
    font-size: 0.9em;
    text-decoration: none;
}

.security a:hover {
    text-decoration: underline;
}

.security .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 5px;
}

.security .pagination span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    display: inline-block;
    transition: background-color 0.3s;
}

.security .pagination .active {
    background-color: #0071bc;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

.modal-content h2,
.modal-content p {
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 1.5em;
    color: #333;
}

.modal-content p {
    font-size: 0.9em;
    color: #555;
}

.loader {
    margin: 20px auto;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #0071bc;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#passwordModal input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

#passwordModal button {
    background-color: #0071bc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#passwordModal button:hover {
    background-color: #005a99;
}
