/*
 * Sign-in page (resources/views/auth/login2.blade.php).
 * Same design language as the landing page and app: navy #1c368a, violet #5d78ff, sky #94daff.
 */
:root {
    --au-brand: #1c368a;
    --au-brand-dark: #13245e;
    --au-violet: #5d78ff;
    --au-sky: #94daff;
    --au-success: #0abb87;
    --au-danger: #e5306c;
    --au-ink: #1e2340;
    --au-text: #3b4058;
    --au-label: #565c78;
    --au-line: #e4e8f5;
    --au-soft: #f5f7fe;
}

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

html,
body {
    height: 100%;
}

body.au-page {
    margin: 0;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    color: var(--au-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.au-page a {
    color: inherit;
    text-decoration: none;
}

.au-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    min-height: 100vh;
}

/* ================= Form side ================= */
.au-side {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px clamp(24px, 6vw, 72px);
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(148, 218, 255, .28), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(93, 120, 255, .14), transparent 45%),
        #fff;
}

.au-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.au-logo img {
    display: block;
    height: 52px;
    width: auto;
}

.au-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 40px;
    padding: 0 1rem;
    border-radius: 12px;
    background: var(--au-soft);
    color: var(--au-brand) !important;
    font-size: .9rem;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.au-back:hover {
    background: #e9edff;
    transform: translateX(-2px);
}

.au-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.au-card {
    width: 100%;
    max-width: 440px;
}

/* Panels: sign-in / forgot password */
.au-panel {
    animation: au-rise .5s cubic-bezier(.2, .8, .2, 1) both;
}

.au-panel[hidden] {
    display: none;
}

.au-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(93, 120, 255, .12);
    color: var(--au-brand);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.au-wave {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: au-wave 2.6s ease-in-out infinite;
}

.au-title {
    margin: .85rem 0 .4rem;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.6px;
    color: var(--au-ink);
}

.au-title span {
    background: linear-gradient(90deg, var(--au-violet), var(--au-brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.au-sub {
    margin: 0 0 1.75rem;
    font-size: 1rem;
    color: var(--au-label);
}

/* Alerts */
.au-alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: 1.1rem;
    padding: .8rem 1rem;
    border-radius: 14px;
    font-size: .92rem;
    font-weight: 500;
    animation: au-shake .4s ease;
}

.au-alert[hidden] {
    display: none;
}

.au-alert i {
    margin-top: .15rem;
}

.au-alert--error {
    color: #b0204f;
    background: rgba(229, 48, 108, .08);
    box-shadow: inset 0 0 0 1px rgba(229, 48, 108, .2);
}

.au-alert--success {
    color: #07875f;
    background: rgba(10, 187, 135, .1);
    box-shadow: inset 0 0 0 1px rgba(10, 187, 135, .25);
    animation: none;
}

/* Fields */
.au-field {
    margin-bottom: 1rem;
}

.au-field label {
    display: block;
    margin-bottom: .35rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--au-ink);
}

.au-input {
    position: relative;
    display: flex;
    align-items: center;
}

.au-input > i {
    position: absolute;
    left: 1rem;
    color: #9aa3c7;
    font-size: 1rem;
    transition: color .2s ease;
    pointer-events: none;
}

.au-input input {
    width: 100%;
    height: 54px;
    padding: 0 1rem 0 2.8rem;
    border: 1.5px solid var(--au-line);
    border-radius: 14px;
    background: var(--au-soft);
    color: var(--au-ink);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.au-input input::placeholder {
    color: #9aa3c7;
    font-weight: 400;
}

.au-input input:focus {
    outline: none;
    border-color: var(--au-violet);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(93, 120, 255, .15);
}

.au-input:focus-within > i {
    color: var(--au-violet);
}

.au-input.is-invalid input {
    border-color: var(--au-danger);
    background: #fff;
}

.au-input--password input {
    padding-right: 3.2rem;
}

.au-eye {
    position: absolute;
    right: .55rem;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9aa3c7;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.au-eye:hover {
    background: rgba(93, 120, 255, .1);
    color: var(--au-brand);
}

.au-error {
    display: block;
    margin-top: .35rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--au-danger);
}

.au-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .25rem 0 1.5rem;
}

/* Remember me switch */
.au-switch {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--au-text);
    cursor: pointer;
    user-select: none;
}

.au-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.au-switch__track {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #d6dbef;
    transition: background .25s ease;
}

.au-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(20, 30, 70, .25);
    transition: transform .25s cubic-bezier(.3, .9, .3, 1.2);
}

.au-switch input:checked + .au-switch__track {
    background: linear-gradient(135deg, var(--au-violet), var(--au-brand));
}

.au-switch input:checked + .au-switch__track::after {
    transform: translateX(18px);
}

.au-switch input:focus-visible + .au-switch__track {
    box-shadow: 0 0 0 4px rgba(93, 120, 255, .2);
}

.au-link {
    border: 0;
    padding: 0;
    background: none;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    color: var(--au-violet) !important;
    cursor: pointer;
}

.au-link:hover {
    text-decoration: underline;
}

/* Buttons */
.au-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.au-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--au-violet), var(--au-brand));
    box-shadow: 0 12px 26px rgba(28, 54, 138, .32);
}

.au-btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    animation: au-sweep 4s ease-in-out infinite;
}

.au-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(28, 54, 138, .4);
}

.au-btn--primary .fa-arrow-right {
    transition: transform .2s ease;
}

.au-btn--primary:hover .fa-arrow-right {
    transform: translateX(4px);
}

.au-btn--ghost {
    color: var(--au-brand);
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--au-line);
}

.au-btn--ghost:hover {
    background: var(--au-soft);
}

.au-btn[disabled] {
    cursor: progress;
    opacity: .85;
    transform: none;
}

.au-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: au-spin .7s linear infinite;
}

.au-btn.is-loading .au-spinner {
    display: inline-block;
}

.au-btn.is-loading .au-btn__icon {
    display: none;
}

.au-actions {
    display: grid;
    gap: .6rem;
}

/* Join links */
.au-divider {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 1.75rem 0 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--au-label);
}

.au-divider::before,
.au-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--au-line);
}

.au-join {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.au-join a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem .9rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--au-line);
    transition: transform .2s ease, box-shadow .2s ease;
}

.au-join a:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1.5px var(--au-violet), 0 10px 22px rgba(28, 54, 138, .12);
}

.au-join__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--au-violet), var(--au-brand));
}

.au-join strong {
    display: block;
    font-size: .95rem;
    color: var(--au-ink);
}

.au-join small {
    display: block;
    font-size: .78rem;
    color: var(--au-label);
}

.au-foot {
    font-size: .82rem;
    color: var(--au-label);
    text-align: center;
}

.au-foot a {
    font-weight: 600;
}

.au-foot a:hover {
    color: var(--au-brand);
}

/* ================= Showcase side ================= */
.au-show {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(28px, 4vw, 56px);
    color: #fff;
    background: var(--au-brand-dark);
}

.au-show__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.4s ease, transform 8s ease-out;
}

.au-show__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.au-show::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 85% 10%, rgba(148, 218, 255, .35), transparent 40%),
        linear-gradient(200deg, rgba(28, 54, 138, .35) 0%, rgba(19, 36, 94, .82) 55%, rgba(10, 18, 50, .95) 100%);
}

.au-show::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.au-show__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
}

/* Floating badges */
.au-float {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 16px 30px rgba(5, 12, 40, .25);
    animation: au-float 5s ease-in-out infinite;
}

.au-float i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: var(--au-brand);
}

.au-float strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.1;
}

.au-float span {
    font-size: .8rem;
    opacity: .85;
}

.au-float--one {
    top: 12%;
    right: 8%;
}

.au-float--two {
    top: 30%;
    left: 8%;
    animation-delay: -2.5s;
}

.au-show__eyebrow {
    display: inline-block;
    margin-bottom: .9rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}

.au-show__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    color: #fff;
}

.au-show__title span {
    background: linear-gradient(90deg, #fff, var(--au-sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.au-roles {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.au-role {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    height: 52px;
    padding: 0 1.4rem;
    border-radius: 14px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.au-role:hover {
    transform: translateY(-3px);
}

.au-role--sky {
    color: var(--au-brand) !important;
    background: var(--au-sky);
    box-shadow: 0 12px 26px rgba(34, 185, 255, .35);
}

.au-role--glass {
    color: #fff !important;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.au-role--glass:hover {
    background: rgba(255, 255, 255, .24);
}

.au-show__text {
    margin: 0;
    max-width: 560px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
}

.au-dots {
    display: flex;
    gap: .45rem;
    margin-top: 1.75rem;
}

.au-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}

.au-dots button.is-active {
    width: 30px;
    background: #fff;
}

/* ================= Registration pages ================= */
.au-shell--form {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
}

/* Long forms scroll; the showcase stays in view */
.au-show--sticky {
    position: sticky;
    top: 0;
    height: 100vh;
}

.au-card--wide {
    max-width: 640px;
}

.au-req {
    color: var(--au-danger);
}

.au-hint {
    font-weight: 600;
    color: var(--au-violet);
}

.au-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
}

.au-field--full {
    grid-column: 1 / -1;
}

/* Selects styled like the inputs */
.au-input select {
    width: 100%;
    height: 54px;
    padding: 0 2.6rem 0 2.8rem;
    border: 1.5px solid var(--au-line);
    border-radius: 14px;
    background-color: var(--au-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%231c368a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    color: var(--au-ink);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.au-input select:focus {
    outline: none;
    border-color: var(--au-violet);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(93, 120, 255, .15);
}

.au-input select:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.au-input.is-invalid select {
    border-color: var(--au-danger);
}

/* Section headings with step numbers */
.au-section {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1.6rem 0 .9rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--au-ink);
}

.au-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--au-line);
}

.au-section span {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: .8rem;
    background: linear-gradient(135deg, var(--au-violet), var(--au-brand));
}

/* Plan summary (buyer) */
.au-plan {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .9rem;
    margin-bottom: 1.4rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(148, 218, 255, .35), transparent 45%),
        linear-gradient(130deg, var(--au-brand-dark), var(--au-brand) 60%, #2a47b0);
    box-shadow: 0 14px 30px rgba(28, 54, 138, .28);
}

.au-plan__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffd166;
    background: rgba(255, 255, 255, .14);
}

.au-plan__body {
    flex: 1;
    min-width: 0;
}

.au-plan__label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .8;
}

.au-plan__body strong {
    font-size: 1rem;
}

.au-plan__price {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
}

.au-plan__price small {
    font-size: .75rem;
    font-weight: 600;
    opacity: .8;
}

.au-plan__change {
    padding: .4rem .8rem;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: #fff !important;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    transition: background .2s ease;
}

.au-plan__change:hover {
    background: rgba(255, 255, 255, .26);
}

/* Seller type cards */
.au-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.au-choice__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.au-choice__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--au-line);
    cursor: pointer;
    transition: box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.au-choice__card:hover {
    transform: translateY(-2px);
}

.au-choice__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--au-brand);
    background: rgba(93, 120, 255, .12);
    transition: background .2s ease, color .2s ease;
}

.au-choice__card strong {
    display: block;
    font-size: .95rem;
    color: var(--au-ink);
}

.au-choice__card small {
    display: block;
    font-size: .78rem;
    color: var(--au-label);
}

.au-choice__tick {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--au-violet);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s ease, transform .2s ease;
}

.au-choice__item input:checked + .au-choice__card {
    background: #f6f8ff;
    box-shadow: inset 0 0 0 2px var(--au-violet), 0 10px 22px rgba(28, 54, 138, .12);
}

.au-choice__item input:checked + .au-choice__card .au-choice__icon {
    color: #fff;
    background: linear-gradient(135deg, var(--au-violet), var(--au-brand));
}

.au-choice__item input:checked + .au-choice__card .au-choice__tick {
    opacity: 1;
    transform: none;
}

.au-choice__item input:focus-visible + .au-choice__card {
    box-shadow: inset 0 0 0 2px var(--au-violet), 0 0 0 4px rgba(93, 120, 255, .18);
}

/* Product chips */
.au-products {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-height: 54px;
    padding: .6rem;
    border: 1.5px dashed #d3d9f2;
    border-radius: 14px;
    background: var(--au-soft);
    transition: opacity .2s ease;
}

.au-products.is-loading {
    opacity: .6;
}

.au-products.is-invalid {
    border-color: var(--au-danger);
}

.au-products__empty {
    align-self: center;
    padding: 0 .4rem;
    font-size: .9rem;
    color: var(--au-label);
}

.au-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.au-chip span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--au-line);
    font-size: .9rem;
    font-weight: 600;
    color: var(--au-ink);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.au-chip span:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1.5px var(--au-violet);
}

.au-chip span i {
    display: none;
    font-size: .7rem;
}

.au-chip input:checked + span {
    color: #fff;
    background: linear-gradient(135deg, var(--au-violet), var(--au-brand));
    box-shadow: 0 6px 14px rgba(28, 54, 138, .25);
}

.au-chip input:checked + span i {
    display: inline;
}

.au-chip input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(93, 120, 255, .3);
}

/* Password strength + match */
.au-strength {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .45rem;
}

.au-strength__bars {
    display: flex;
    gap: 4px;
}

.au-strength__bars i {
    width: 28px;
    height: 5px;
    border-radius: 3px;
    background: var(--au-line);
    transition: background .25s ease;
}

.au-strength__label {
    font-size: .8rem;
    font-weight: 500;
    color: var(--au-label);
}

.au-strength[data-score="0"] .au-strength__bars i:nth-child(-n+1),
.au-strength[data-score="1"] .au-strength__bars i:nth-child(-n+1) { background: var(--au-danger); }
.au-strength[data-score="2"] .au-strength__bars i:nth-child(-n+2) { background: #f5a623; }
.au-strength[data-score="3"] .au-strength__bars i:nth-child(-n+3) { background: var(--au-violet); }
.au-strength[data-score="4"] .au-strength__bars i { background: var(--au-success); }

.au-match {
    display: block;
    min-height: 1.2em;
    margin-top: .45rem;
    font-size: .8rem;
    font-weight: 600;
}

.au-match[data-state="ok"] { color: var(--au-success); }
.au-match[data-state="bad"] { color: var(--au-danger); }

/* Terms checkbox */
.au-terms {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: .6rem 0 1.25rem;
    font-size: .95rem;
    color: var(--au-text);
    cursor: pointer;
}

.au-terms input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.au-terms__box {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #c8cfe8;
    color: transparent;
    font-size: .7rem;
    transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}

.au-terms input:checked + .au-terms__box {
    color: #fff;
    background: linear-gradient(135deg, var(--au-violet), var(--au-brand));
    box-shadow: none;
}

.au-terms input:focus-visible + .au-terms__box {
    box-shadow: 0 0 0 4px rgba(93, 120, 255, .2);
}

.au-terms a {
    font-weight: 600;
    color: var(--au-violet) !important;
}

.au-terms a:hover {
    text-decoration: underline;
}

.au-btn--primary:disabled:not(.is-loading) {
    cursor: not-allowed;
    opacity: .5;
    box-shadow: none;
    transform: none;
}

/* Showcase list + sign-in prompt */
.au-show__list {
    display: grid;
    gap: .75rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.au-show__list li {
    display: flex;
    gap: .8rem;
    font-size: .98rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
}

.au-show__list i {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--au-brand);
    background: var(--au-sky);
    font-size: .85rem;
}

.au-signin-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .9rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-weight: 600;
}

/* ================= Keyframes ================= */
@keyframes au-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes au-wave {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(16deg); }
    20%, 40% { transform: rotate(-8deg); }
}

@keyframes au-sweep {
    0%, 60% { left: -80%; }
    100% { left: 140%; }
}

@keyframes au-spin {
    to { transform: rotate(360deg); }
}

@keyframes au-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes au-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ================= Responsive ================= */
@media (max-width: 991px) {
    .au-shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .au-show {
        min-height: 460px;
    }
    .au-float--two {
        display: none;
    }
    .au-shell--form {
        grid-template-columns: minmax(0, 1fr);
    }
    .au-show--sticky {
        position: relative;
        height: auto;
    }
}

@media (max-width: 520px) {
    .au-side {
        padding: 20px 16px;
    }
    .au-back span {
        display: none;
    }
    .au-join {
        grid-template-columns: minmax(0, 1fr);
    }
    .au-row {
        flex-wrap: wrap;
    }
    .au-float {
        display: none;
    }
    .au-grid,
    .au-choice {
        grid-template-columns: minmax(0, 1fr);
    }
    .au-plan__price {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .au-panel,
    .au-wave,
    .au-btn--primary::after,
    .au-float,
    .au-alert {
        animation: none !important;
    }
    .au-show__slide {
        transition: opacity .3s ease;
        transform: none !important;
    }
}

/* Registration pages: plain (no gradient) and smaller titles */
.au-shell--form .au-title {
    font-size: clamp(1.45rem, 2.2vw, 1.75rem);
    letter-spacing: -.3px;
}

.au-shell--form .au-title span,
.au-shell--form .au-show__title span {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: inherit;
}

.au-shell--form .au-show__title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

/* Account type tag, pinned to the top-left of the showcase */
.au-account-tag {
    position: absolute;
    top: clamp(28px, 4vw, 56px);
    left: clamp(28px, 4vw, 56px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    color: var(--au-brand);
    background: #fff;
    box-shadow: 0 12px 26px rgba(5, 12, 40, .25);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Centred logo in the form header (login + registration); "Back to home" stays on the right */
.au-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.au-top .au-logo {
    grid-column: 2;
}

.au-top .au-back {
    grid-column: 3;
    justify-self: end;
}

/* ---- Small screens: stop overlaps ---- */
@media (max-width: 991px) {
    /* The account tag joins the normal flow above the showcase text instead of floating over it */
    .au-show {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
    }
    .au-account-tag {
        position: static;
        align-self: flex-start;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 600px) {
    /* Plan card: icon + plan on the first row, price + "Change plan" on the second */
    .au-plan {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: .8rem;
        row-gap: .75rem;
    }
    .au-plan__price {
        grid-column: 1 / 3;
        grid-row: 2;
        align-self: center;
        white-space: nowrap;
        display: flex;
        align-items: baseline;
        gap: .3rem;
        padding-top: .75rem;
        border-top: 1px solid rgba(255, 255, 255, .18);
    }
    .au-plan__change {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        align-self: end;
    }
}

/* ================= Email verification ================= */
.au-verify__icon {
    position: relative;
    width: 84px;
    height: 84px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    color: #fff;
    font-size: 2.1rem;
    background: linear-gradient(135deg, var(--au-violet), var(--au-brand));
    box-shadow: 0 16px 34px rgba(28, 54, 138, .3);
    animation: au-float 4s ease-in-out infinite;
}

.au-verify__badge {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #fff;
    color: #fff;
    font-size: .75rem;
    background: var(--au-success);
}

.au-verify__email {
    display: inline-block;
    max-width: 100%;
    color: var(--au-ink);
    overflow-wrap: anywhere; /* only breaks addresses longer than the line */
}

.au-steps {
    display: grid;
    gap: .6rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.au-steps li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    border-radius: 14px;
    background: var(--au-soft);
    font-weight: 600;
    color: var(--au-ink);
}

.au-steps li span {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    font-size: .8rem;
    background: linear-gradient(135deg, var(--au-violet), var(--au-brand));
}

.au-verify__resend p {
    margin: 0 0 .75rem;
    font-size: .95rem;
    color: var(--au-label);
}

.au-verify__switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.25rem;
    font-size: .92rem;
    color: var(--au-label);
}

@media (prefers-reduced-motion: reduce) {
    .au-verify__icon {
        animation: none;
    }
}
