/* A5E account entry — presentation only. Authentication is connected server-side later. */
html,
body {
    min-height: 100%;
    background: #0D0F12;
}

.account-page {
    position: relative;
    min-height: 100vh;
    padding: 8.5rem 1.5rem 5rem;
    overflow: hidden;
    background: #0D0F12;
}
.account-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/a5e_voyageur.png") center 30% / cover no-repeat;
    opacity: 0.34;
}
.account-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(13, 15, 18, 0.72), rgba(13, 15, 18, 0.9)),
        linear-gradient(to right, rgba(13, 15, 18, 0.86), rgba(13, 15, 18, 0.42), rgba(13, 15, 18, 0.86));
}
.account-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
}
.account-brand {
    display: block;
    width: min(100%, 430px);
    height: auto;
    margin: 0 auto 1.8rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 22px rgba(197, 138, 58, 0.18));
}
.account-panel {
    position: relative;
    padding: 2.4rem 2.6rem 2.2rem;
    background: rgba(18, 21, 26, 0.94);
    border: 1px solid rgba(197, 138, 58, 0.34);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.52);
}
.account-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(to right, transparent, #C58A3A, transparent);
}
.account-heading {
    margin: 0 0 0.45rem;
    color: #F2F0EA;
    font-family: "Cormorant SC", serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}
.account-intro {
    margin: 0 0 1.8rem;
    color: rgba(242, 240, 234, 0.66);
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}
.account-tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(197, 138, 58, 0.18);
}
.account-tab {
    position: relative;
    flex: 1;
    padding: 0.75rem 0.5rem;
    color: rgba(242, 240, 234, 0.52);
    background: transparent;
    border: 0;
    font-family: "Cormorant SC", serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.account-tab::after {
    content: "";
    position: absolute;
    right: 25%;
    bottom: -1px;
    left: 25%;
    height: 1px;
    background: transparent;
}
.account-tab.is-active {
    color: #DDBB77;
}
.account-tab:hover,
.account-tab:focus {
    color: #DDBB77;
    text-decoration: none;
}
.account-tab.is-active::after {
    background: #C58A3A;
}
.account-form[hidden] {
    display: none;
}
.account-field {
    margin-bottom: 1.15rem;
}
.account-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.account-label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(242, 240, 234, 0.76);
    font-family: "Open Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.account-input {
    width: 100%;
    height: 48px;
    padding: 0 0.9rem;
    color: #F2F0EA;
    background: rgba(7, 9, 11, 0.74);
    border: 1px solid rgba(242, 240, 234, 0.15) !important;
    border-radius: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.account-input:focus {
    border-color: rgba(197, 138, 58, 0.72) !important;
    box-shadow: 0 0 0 2px rgba(197, 138, 58, 0.08);
}
.account-input::placeholder {
    color: rgba(242, 240, 234, 0.28);
}
.account-options {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.15rem 0 1.35rem;
    font-size: 0.78rem;
}
.account-check {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: rgba(242, 240, 234, 0.62);
    cursor: pointer;
}
.account-check input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #C58A3A;
}
.account-link {
    color: #C58A3A;
    text-decoration: none;
}
.account-link:hover,
.account-link:focus {
    color: #DDBB77;
    text-decoration: none;
}
.account-submit {
    width: 100%;
    margin: 0;
    cursor: pointer;
}
.account-notice {
    display: none;
    margin: 1rem 0 0;
    padding: 0.8rem 0.9rem;
    color: rgba(242, 240, 234, 0.74);
    background: rgba(197, 138, 58, 0.08);
    border: 1px solid rgba(197, 138, 58, 0.22);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}
.account-notice.is-visible {
    display: block;
}
.account-message {
    margin: 0 0 1.35rem;
    padding: 0.85rem 1rem;
    font-family: "Open Sans", sans-serif;
    font-size: 0.8rem;
    line-height: 1.55;
}
.account-message ul {
    margin: 0;
    padding-left: 1.15rem;
}
.account-message--error {
    color: #F0C5BC;
    background: rgba(145, 49, 35, 0.14);
    border: 1px solid rgba(194, 79, 60, 0.35);
}
.account-message--success {
    color: #D8E8C3;
    background: rgba(89, 128, 55, 0.14);
    border: 1px solid rgba(126, 166, 85, 0.38);
}
.account-verification,
.account-authenticated {
    text-align: center;
}
.account-verification-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    color: #C58A3A;
    border: 1px solid rgba(197, 138, 58, 0.42);
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 50px;
}
.account-verification h2,
.account-authenticated h2 {
    margin: 0 0 0.7rem;
    color: #F2F0EA;
    font-family: "Cormorant SC", serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.account-verification p,
.account-authenticated p {
    margin: 0 0 0.35rem;
    color: rgba(242, 240, 234, 0.68);
    font-size: 0.86rem;
    line-height: 1.55;
}
.account-verification .account-verification-expiry {
    margin-bottom: 1.35rem;
    color: rgba(242, 240, 234, 0.46);
    font-size: 0.75rem;
}
.account-code-input {
    margin-bottom: 1rem;
    font-family: "Cormorant SC", serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    text-align: center;
}
.account-resend {
    margin-top: 1rem;
}
.account-link-button {
    padding: 0;
    color: #C58A3A;
    background: transparent;
    border: 0;
    font-size: 0.78rem;
    cursor: pointer;
}
.account-link-button:hover,
.account-link-button:focus {
    color: #DDBB77;
    text-decoration: underline;
}
.account-back {
    display: block;
    margin-top: 1.4rem;
    color: rgba(242, 240, 234, 0.55);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}
.account-back:hover,
.account-back:focus {
    color: #C58A3A;
    text-decoration: none;
}

/* ===== Mots de passe : bouton afficher/masquer + validation visuelle ===== */
.account-password {
    position: relative;
}
.account-password .account-input {
    padding-right: 3.1rem;
}
.account-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: rgba(242, 240, 234, 0.45);
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}
.account-password-toggle:hover,
.account-password-toggle:focus {
    color: #DDBB77;
    outline: none;
}
.account-password-toggle i {
    font-size: 1rem;
    pointer-events: none;
}
.account-hint {
    margin: 0.45rem 0 0;
    color: rgba(242, 240, 234, 0.42);
    font-family: "Open Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}
.account-password-status {
    min-height: 1.3rem;
    margin: -0.45rem 0 0.9rem;
    color: rgba(242, 240, 234, 0.55);
    font-family: "Open Sans", sans-serif;
    font-size: 0.78rem;
    line-height: 1.3rem;
}
.account-password-status .fa {
    margin-right: 0.4rem;
}
.account-password-status.is-match {
    color: #D8E8C3;
}
.account-password-status.is-mismatch {
    color: #F0C5BC;
}
.account-input.is-invalid {
    border-color: rgba(194, 79, 60, 0.6) !important;
    box-shadow: 0 0 0 2px rgba(194, 79, 60, 0.1);
}

@media (max-width: 575px) {
    .account-page {
        padding: 7rem 1rem 3rem;
    }
    .account-panel {
        padding: 2rem 1.25rem 1.7rem;
    }
    .account-heading {
        font-size: 1.6rem;
    }
    .account-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .account-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

.launcher-device-card {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: rgba(242, 240, 234, 0.72);
    background: rgba(5, 12, 22, 0.62);
    border: 1px solid rgba(221, 187, 119, 0.22);
    border-radius: 4px;
}
.launcher-device-card span,
.launcher-device-card small { font-family: "Open Sans", sans-serif; }
.launcher-device-card strong { color: #F2F0EA; font-size: 1.08rem; }
.launcher-security-note { margin: 1rem 0; line-height: 1.55; }
.launcher-authorization-actions { display: grid; gap: 0.75rem; }
.launcher-authorization-actions .account-link-button { justify-self: center; }
.launcher-authorization .featured-btn:disabled { opacity: 0.45; cursor: not-allowed; }
