* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url('dune.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.login-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 400px;
    text-align: center;
}

.logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #fff;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo svg {
    width: 100%;
    height: 100%;
    transition: 0.3s;
}

.logo:hover svg {
    transform: scale(1.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #bdc3c7;
    background: transparent;
    outline: none;
    font-size: 16px;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    pointer-events: none;
    transition: 0.3s;
    color: #7f8c8d;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: #3498db;
}

.input-group input:focus {
    border-bottom-color: #3498db;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    margin-bottom: 20px;
}

.login-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.links a {
    color: #34495e;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.links a:hover {
    color: #3498db;
}

/* Style pour la modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #7f8c8d;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #34495e;
}

/* Ajustements pour les formulaires dans la modal */
.modal-content .input-group {
    margin-bottom: 20px;
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #2c3e50;
}

/* Styles pour l'animation de succès */
.checkmark {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: block;
}

.checkmark-circle {
    stroke: #27ae60;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #27ae60;
    stroke-width: 2;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Styles pour les messages de succès */
.success-message h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

.success-message p {
    color: #2c3e50;
}

/* Animation pour les textes amusants */
.funny-text {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 10px;
    min-height: 20px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Styles pour le footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 15px;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.footer p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.footer:hover p {
    color: rgba(255, 255, 255, 1);
}

.footer .company {
    font-weight: bold;
    color: rgba(52, 152, 219, 0.5);
    transition: color 0.3s ease;
}

.footer:hover .company {
    color: rgba(52, 152, 219, 1);
}

/* Animation du logo du site */
.site-logo {
    margin-bottom: 8px;
    width: 100%;
}

.logo-text {
    color: #3498db;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    min-height: 24px;
    width: 100%;
    margin-bottom: 4px;
}

.cursor {
    display: inline-block;
    width: 1.6px;
    height: 1em;
    background-color: #3498db;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}
