body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Container --- */
.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Wrapper --- */
.login-wrapper {
    width: 100%;
    max-width: 360px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Card --- */
.form-card {
    width: 100%;
    background: #000000;
    border-radius: 16px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;

    /* Animation */
    opacity: 0;
    transform: translateY(15px) scale(0.97);
    transition: all 0.25s ease;

    display: none;
}

.form-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: flex;
}

/* --- Branding --- */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
}

.brand h1 {
    font-size: 2.2rem;
    margin: 0;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

/* --- Inputs --- */
.input-group {
    width: 100%;
}

.input-group input {
    width: 100%;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;

    text-align: center;
    /* Centre le texte saisi */
}

.input-group input:focus {
    border-color: #00ffcc;
    background: #000000;
}

.input-group input::placeholder {
    text-align: center;
    color: #666666;
}

/* --- Input avec bouton intégré --- */
.input-group.with-button {
    position: relative;
}

.input-group.with-button input {
    padding-right: 55px;
}

/* Bouton dans le champ */
.input-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;
    color: #ffffff;

    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;

    cursor: pointer;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.2s ease, transform 0.15s ease;
}

.input-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}


/* Apparition seulement quand on tape */
.input-btn {
    opacity: 0;
    pointer-events: none;
}

.input-group input:not(:placeholder-shown)+.input-btn {
    opacity: 0.6;
    pointer-events: auto;
}

.input-btn:hover {
    opacity: 1;
}

.input-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* --- Footer --- */
.footer-actions {
    text-align: center;
    margin-top: 5px;
}

#login-btn {
    width: 75%;
    height: 42px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 10px auto 0;

    background-color: #fff;
    color: #000;

    border: none;
    border-radius: 999px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: background-color .2s ease,
        transform .15s ease;
}

#login-btn:hover {
    background-color: #e8e8e8;
}

#login-btn:active {
    transform: scale(0.98);
}

.btn-text {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px;
}

.btn-text:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Header --- */
.header-back {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.header-back h2 {
    font-size: 1.2rem;
    margin: 0;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Texts --- */
.info-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    text-align: center;
}

.error-message {
    color: #ffffff;
    font-size: 0.8rem;
    text-align: center;
    min-height: 18px;
}

/* --- Hidden --- */
.hidden {
    display: none !important;
}