/* Page de connexion (index.php) — feuille dédiée, propre à cette page uniquement */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #e3e3e3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Mono', monospace;
    overflow: hidden;
    transition: background 0.3s;
}

.ripple-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

.ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    opacity: 1;
}

.ripple-circle.go {
    animation: ripple-expand 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ripple-expand {
    to { transform: scale(25); opacity: 1; }
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    width: 300px;
    flex-direction: column;
    gap: 35px;
    background: #e3e3e3;
    box-shadow: 16px 16px 32px #c8c8c8, -16px -16px 32px #fefefe;
    border-radius: 8px;
    animation: cardin 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes cardin {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-title {
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    font-weight: bold;
    font-size: x-large;
}

.error-line {
    font-size: 10px;
    letter-spacing: 1px;
    color: #000;
    text-transform: uppercase;
    border-left: 2px solid #000;
    padding-left: 8px;
    margin-top: -20px;
    align-self: flex-start;
    margin-left: 25px;
}

.inputBox {
    position: relative;
    width: 250px;
}

.inputBox input {
    width: 100%;
    padding: 10px;
    outline: none;
    border: none;
    color: #000;
    font-size: 1em;
    font-family: 'DM Mono', monospace;
    background: transparent;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transition: 0.1s;
    border-bottom-left-radius: 8px;
}

.inputBox span {
    margin-top: 5px;
    position: absolute;
    left: 0;
    transform: translateY(-4px);
    margin-left: 10px;
    padding: 10px;
    pointer-events: none;
    font-size: 12px;
    color: #000;
    text-transform: uppercase;
    transition: 0.5s;
    letter-spacing: 3px;
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
}

.inputBox input:valid ~ span,
.inputBox input:focus ~ span {
    transform: translateX(113px) translateY(-15px);
    font-size: 0.8em;
    padding: 5px 10px;
    background: #000;
    letter-spacing: 0.2em;
    color: #fff;
}

.inputBox input:valid,
.inputBox input:focus {
    border: 2px solid #000;
    border-radius: 8px;
}

.enter {
    height: 45px;
    width: 100px;
    border-radius: 5px;
    border: 2px solid #000;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.4s, color 0.4s, transform 0.1s;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 1em;
    font-family: 'DM Mono', monospace;
}

.enter:hover { background-color: #000; color: #fff; }
.enter:active { transform: scale(0.96); }
