/**
 * Placeholder de chargement du formulaire de connexion Bourse Direct
 * (bloc "Mon espace Bourse" + bloc "Mon espace Epargne").
 *
 * Le markup est à placer dans <div id="auth-app"> : il est remplacé
 * par le formulaire dès que l'application React est rendue.
 */
.auth-loading {
    --auth-loading-bg: #e9e9e9;
    --auth-loading-shine: #f6f6f6;
    --auth-loading-bourse: rgba(74, 144, 226, 0.35);
    --auth-loading-epargne: rgba(28, 58, 114, 0.3);
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.auth-loading *,
.auth-loading *::before,
.auth-loading *::after {
    box-sizing: border-box;
}

.auth-loading-card {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    min-height: 385px;
    padding: 40px 40px 30px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.25);
}

.auth-loading-card + .auth-loading-card {
    margin-left: 20px;
}

/* Formes de base */
.auth-loading-title,
.auth-loading-line,
.auth-loading-field,
.auth-loading-link,
.auth-loading-icon,
.auth-loading-btn {
    display: block;
    border-radius: 4px;
    background-color: var(--auth-loading-bg);
    background-image: linear-gradient(
        90deg,
        transparent 0,
        var(--auth-loading-shine) 50%,
        transparent 100%
    );
    background-repeat: no-repeat;
    background-size: 200% 100%;
    animation: auth-loading-shimmer 1.4s ease-in-out infinite;
}

.auth-loading-title {
    width: 60%;
    height: 30px;
    margin: 0 auto 18px;
}

.auth-loading-line {
    width: 80%;
    height: 14px;
    margin: 0 auto 10px;
}

.auth-loading-line--short {
    width: 50%;
}

/* Bloc "Mon espace Bourse" */
.auth-loading-intro {
    margin-bottom: 36px;
}

.auth-loading-input {
    display: flex;
    height: 42px;
}

.auth-loading-icon {
    flex: 0 0 42px;
    border-radius: 4px 0 0 4px;
    background-color: var(--auth-loading-bourse);
}

.auth-loading-field {
    flex: 1 1 auto;
    border-radius: 0 4px 4px 0;
}

.auth-loading-link {
    width: 110px;
    height: 12px;
    margin: 10px 0 26px auto;
}

.auth-loading-link--long {
    width: 180px;
}

.auth-loading-btn {
    width: 130px;
    height: 40px;
    margin-left: auto;
    background-color: var(--auth-loading-bourse);
}

/* Bloc "Mon espace Epargne" */
.auth-loading-card--savings {
    align-items: center;
}

.auth-loading-card--savings .auth-loading-title {
    width: 65%;
}

.auth-loading-card--savings .auth-loading-btn {
    width: 148px;
    margin: 40px auto 46px;
    background-color: var(--auth-loading-epargne);
}

.auth-loading-card--savings .auth-loading-discover {
    width: 55%;
    margin-top: auto;
    margin-bottom: 0;
}

@keyframes auth-loading-shimmer {
    from {
        background-position: 150% 0;
    }
    to {
        background-position: -50% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-loading-title,
    .auth-loading-line,
    .auth-loading-field,
    .auth-loading-link,
    .auth-loading-icon,
    .auth-loading-btn {
        animation: none;
        background-image: none;
    }
}

@media (max-width: 991px) {
    .auth-loading {
        flex-direction: column;
    }
    .auth-loading-card + .auth-loading-card {
        margin-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .auth-loading-card {
        padding: 30px 20px 20px;
    }
}
