/* Sign-in pages: the same navy, rose and lavender as the rest of MyAll.
   Bump the ?v= on the <link> in templates/account/auth_base.html when this file changes: production caches static files for a year. */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--theme-navigation-height, 4.4rem));
    padding: 2rem 1rem 3rem;
    background: linear-gradient(160deg, #e5e5fe 0%, #f4efff 55%, #fce6ec 100%);
    font-family: "Inter", sans-serif;
}
.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    width: 100%;
    max-width: 980px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(4, 10, 94, 0.18);
    overflow: hidden;
}
.auth-card--narrow { max-width: 520px; grid-template-columns: minmax(0, 1fr); }

/* The brand panel */
.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 560px;
    padding: 2.2rem;
    color: #fff;
    background-color: #040a5e;
    background-size: cover;
    background-position: center;
}
.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 10, 94, 0.55) 0%, rgba(80, 20, 120, 0.72) 55%, rgba(207, 61, 96, 0.82) 100%);
}
.auth-aside > * { position: relative; }
.auth-aside__mark { position: absolute; top: 2rem; left: 2.2rem; width: 52px; height: 52px; }
.auth-aside h2 { margin: 0 0 0.5rem; color: #fff; font-size: 1.9rem; font-weight: 700; line-height: 1.2; }
.auth-aside p { margin: 0 0 1.2rem; color: rgba(255, 255, 255, 0.9); font-size: 1rem; }
.auth-aside__points { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.auth-aside__points li { display: flex; gap: 0.6rem; align-items: flex-start; }
.auth-aside__points i { margin-top: 0.2rem; color: #ffadbc; }

/* The form */
.auth-main { padding: 2.4rem 2.4rem 2rem; }
.auth-brand-mobile { display: none; margin: 0 0 1rem; text-align: center; }
.auth-brand-mobile img { height: 44px; width: auto; }
.auth-title { margin: 0 0 0.3rem; color: #040a5e; font-size: 1.7rem; font-weight: 700; }
.auth-sub { margin: 0 0 1.4rem; color: #6b6578; font-size: 0.95rem; }
.auth-sub a { color: #cf3d60; font-weight: 600; text-decoration: none; }
.auth-sub a:hover { text-decoration: underline; }

.auth-notice { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 1.2rem; padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.9rem; }
.auth-notice i { margin-top: 0.15rem; }
.auth-notice--info { background: #f4efe6; color: #5b4a1e; border: 1px solid rgba(91, 74, 30, 0.18); }
.auth-notice--error { background: #fdecef; color: #8e1f3a; border: 1px solid rgba(207, 61, 96, 0.3); }
.auth-notice--success { background: #e8f6ee; color: #1f6b3e; border: 1px solid rgba(31, 138, 76, 0.25); }

.auth-switch { display: inline-flex; margin: 0 0 1.4rem; padding: 4px; border-radius: 999px; background: #f0f0fb; }
.auth-switch button { padding: 0.5rem 1.3rem; border: 0; border-radius: 999px; background: transparent; color: #040a5e; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.15s, color 0.15s; }
.auth-switch button.active { background: #040a5e; color: #fff; box-shadow: 0 4px 10px rgba(4, 10, 94, 0.25); }
.auth-switch button:not(.active):hover { background: rgba(4, 10, 94, 0.08); }

.auth-field { margin: 0 0 1.1rem; }
.auth-field[hidden] { display: none; }
.auth-field label { display: block; margin: 0 0 0.35rem; color: #040a5e; font-size: 0.85rem; font-weight: 600; }
.auth-input { position: relative; }
.auth-input > i.lead { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); color: #9a96aa; pointer-events: none; }
.auth-input input {
    width: 100%;
    height: 52px;
    padding: 0 1rem 0 2.7rem;
    border: 1.5px solid #d8d6e3;
    border-radius: 14px;
    background: #fff;
    color: #1c1830;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input input::placeholder { color: #a9a6b8; }
.auth-input input:focus { outline: none; border-color: #cf3d60; box-shadow: 0 0 0 4px rgba(207, 61, 96, 0.14); }
.auth-input input.is-invalid { border-color: #cf3d60; background: #fffafb; }
.auth-input .toggle { position: absolute; top: 0; right: 0; height: 100%; padding: 0 1rem; border: 0; background: none; color: #6b6578; cursor: pointer; }
.auth-input .toggle:hover { color: #040a5e; }
.auth-input--plain input { padding-left: 1rem; letter-spacing: 0.35em; text-align: center; font-size: 1.4rem; font-weight: 700; }
.auth-error { margin: 0.35rem 0 0; color: #b02a4a; font-size: 0.84rem; }
.auth-hint { margin: 0.35rem 0 0; color: #6b6578; font-size: 0.82rem; }

.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0 0 1.4rem; font-size: 0.9rem; }
.auth-check { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: #3d3850; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; accent-color: #cf3d60; }
.auth-row a { margin-left: auto; color: #040a5e; font-weight: 600; text-decoration: none; white-space: nowrap; }
.auth-row a:hover { color: #cf3d60; text-decoration: underline; }

.auth-submit { width: 100%; height: 54px; border: 0; border-radius: 999px; background: #cf3d60; color: #fff; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: filter 0.15s, transform 0.05s; }
.auth-submit:hover { filter: brightness(0.93); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: 3px solid rgba(207, 61, 96, 0.4); outline-offset: 2px; }

.auth-foot { margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid #ececf6; text-align: center; color: #6b6578; font-size: 0.92rem; }
.auth-foot a { display: inline-block; margin-left: 0.3rem; color: #cf3d60; font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

@media (max-width: 820px) {
    .auth-card { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
    .auth-aside { display: none; }
    .auth-brand-mobile { display: block; }
    .auth-main { padding: 1.8rem 1.4rem 1.6rem; }
    .auth-page { align-items: flex-start; padding-top: 1.2rem; }
}
