/* Centrage vertical de la page */
.centered-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #FFFFFF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.login-container {
    background-color: rgba(52, 73, 94, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    color: #1ABC9C;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #BDC3C7;
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #1ABC9C;
    z-index: 3;
    pointer-events: none;
    font-size: 16px;
}

.form-control {
    background-color: rgba(44, 62, 80, 0.7);
    border: 2px solid #1ABC9C;
    color: #FFF;
    padding: 12px 15px 12px 45px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
}

.form-control:focus {
    background-color: rgba(44, 62, 80, 0.9);
    color: #FFF;
    border-color: #0E9C7F;
    box-shadow: 0 0 10px rgba(26, 188, 156, 0.3);
    outline: none;
}

.form-control::placeholder {
    color: #95a5a6;
}

.password-strength {
    height: 4px;
    background-color: #34495E;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background-color: #e74c3c;
}

.password-strength-bar.medium {
    width: 66%;
    background-color: #f39c12;
}

.password-strength-bar.strong {
    width: 100%;
    background-color: #27ae60;
}

.password-requirements {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 8px;
    display: none;
}

.password-requirements.show {
    display: block;
}

.password-requirements ul {
    margin: 5px 0;
    padding-left: 20px;
    list-style: none;
}

.password-requirements li {
    padding: 3px 0;
    color: #e74c3c;
}

.password-requirements li.valid {
    color: #27ae60;
}

.btn-primary {
    background: linear-gradient(135deg, #1ABC9C 0%, #0E9C7F 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0E9C7F 0%, #099268 100%);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #5a6c7d;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn-link-map {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-link-map:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
    color: #7f8c8d;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #7f8c8d, transparent);
}

.divider span {
    position: relative;
    background-color: #34495E;
    padding: 0 10px;
}

.footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: #BDC3C7;
    text-align: center;
    line-height: 1.6;
}

.footer-text a {
    color: #1ABC9C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #0E9C7F;
    text-decoration: underline;
}

.logo {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    animation: fadeInDown 0.8s ease-out;
}

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

#text-container {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    line-height: 1.6;
    color: #1ABC9C;
    text-align: justify;
    min-height: 120px;
}

#cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: #1ABC9C;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.fade-out {
    animation: fadeOut 0.5s ease-in forwards;
    background-color: #ffdddd;
    color: red;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
        max-width: 100%;
        margin: 20px;
    }
    
    .login-container h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    #text-container {
        font-size: 16px;
        min-height: 80px;
    }
    
    .form-control {
        padding: 10px 15px 10px 40px;
        font-size: 16px;
    }
}
