.auth-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 8px 12px 20px;
}

.auth-demo-panel {
    width: 100%;
    max-width: 720px;
    margin-bottom: 26px;
}

/* ---------- Card ---------- */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(8, 15, 40, .45);
    animation: authFadeUp .55s cubic-bezier(.22, .8, .3, 1) both;
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Head ---------- */
.auth-card__head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 22px 32px 20px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, #4f46e5 0%, #2563eb 55%, #0ea5e9 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    box-shadow: inset 0 -14px 32px rgba(2, 6, 23, .18);
}

.auth-head-orb {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
    animation: authOrbFloat 9s ease-in-out infinite;
}

.auth-head-orb--1 {
    width: 160px;
    height: 160px;
    top: -85px;
    right: -55px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .38), rgba(255, 255, 255, .05) 70%);
}

.auth-head-orb--2 {
    width: 120px;
    height: 120px;
    bottom: -70px;
    left: -45px;
    background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .26), rgba(255, 255, 255, .03) 70%);
    animation-delay: -3s;
}

.auth-head-orb--3 {
    width: 70px;
    height: 70px;
    top: 42%;
    right: 14%;
    background: radial-gradient(circle, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 70%);
    animation-delay: -5.5s;
}

@keyframes authOrbFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -12px, 0) scale(1.06);
    }
}

.auth-head-glow {
    position: absolute;
    left: 50%;
    bottom: -60px;
    width: 70%;
    height: 90px;
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    filter: blur(45px);
    pointer-events: none;
}

.auth-logo {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .14));
    border: 1px solid rgba(255, 255, 255, .45);
    box-shadow: 0 14px 30px rgba(2, 6, 23, .3), inset 0 1px 0 rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
    transition: transform .3s cubic-bezier(.22, .8, .3, 1);
}

.auth-logo:hover {
    transform: translateY(-3px) rotate(-3deg);
}

.auth-logo-ring {
    position: absolute;
    inset: -7px;
    border-radius: 26px;
    border: 1.5px dashed rgba(255, 255, 255, .5);
    animation: authRingSpin 22s linear infinite;
    pointer-events: none;
}

@keyframes authRingSpin {
    to {
        transform: rotate(360deg);
    }
}

.auth-logo img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(2, 6, 23, .25));
}

.auth-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(2, 6, 23, .15);
}

.auth-eyebrow i {
    font-size: 10px;
    opacity: .9;
}

.auth-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .01em;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(2, 6, 23, .25);
}

.auth-sub {
    position: relative;
    z-index: 1;
    margin: 5px auto 0;
    max-width: 300px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
}

/* ---------- Body / fields ---------- */
.auth-card__body {
    padding: 22px 32px 6px;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: .01em;
}

.auth-input-shell {
    position: relative;
}

.auth-input-shell>i.fa-user,
.auth-input-shell>i.fa-lock {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #9ca3af;
    pointer-events: none;
    transition: color .18s ease;
}

.auth-input-shell input {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 44px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-input-shell input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.auth-input-shell input:focus {
    background: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .13);
}

.auth-input-shell input:focus+i.fa-user,
.auth-input-shell input:focus+i.fa-lock {
    color: #4f46e5;
}

.auth-field--error .auth-input-shell input {
    border-color: #ef4444;
    background: #fef2f2;
}

.auth-pass-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.auth-pass-toggle:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.auth-pass-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    padding: 12px 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #b91c1c;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 12px;
    animation: authFadeUp .3s ease both;
}

.auth-error i {
    font-size: 19px;
    flex-shrink: 0;
}

/* ---------- Meta row ---------- */
.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 4px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: #4b5563;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #4f46e5;
    cursor: pointer;
}

.auth-recaptcha {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 16px 0 4px;
}

/* ---------- Submit ---------- */
.auth-submit {
    width: 100%;
    height: 48px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .32);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .4);
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .3);
}

.auth-submit:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .25), 0 14px 28px rgba(37, 99, 235, .32);
}

.auth-submit i {
    font-size: 13px;
    transition: transform .16s ease;
}

.auth-submit:hover i {
    transform: translateX(3px);
}

.auth-submit.is-loading {
    pointer-events: none;
    opacity: .85;
}

.auth-submit.is-loading i {
    animation: authSpin .8s linear infinite;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Footer ---------- */
.auth-card__foot {
    position: relative;
    padding: 16px 32px 18px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-top: 1px solid #e8ecf3;
}

.auth-card__foot::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, #4f46e5, #0ea5e9);
}

.auth-register {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
}

.auth-register__text {
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    letter-spacing: .01em;
}

.auth-register__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 20px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #4f46e5 !important;
    text-decoration: none !important;
    background: #fff;
    border: 1.5px dashed #c7d2fe;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .1);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease,
        background .18s ease, color .18s ease;
}

.auth-register__btn i {
    font-size: 12px;
    transition: transform .18s ease;
}

.auth-register__btn:hover {
    transform: translateY(-2px);
    color: #fff !important;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    border-style: solid;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .32);
}

.auth-register__btn:hover i {
    transform: translateX(4px);
}

.auth-register__btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .22);
}

#britsoftid {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    color: #64748b;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
    letter-spacing: .01em;
}

.auth-credit__dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
    animation: authPulse 2s ease-in-out infinite;
}

@keyframes authPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .55;
        transform: scale(.85);
    }
}

.auth-credit__label {
    color: #64748b;
}

#britsoftid a {
    color: #dc2626 !important;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
    transition: background-size .25s ease;
}

#britsoftid a:hover {
    text-decoration: none;
    background-size: 100% 1.5px;
}

/* ---------- Top nav pills (layout) ---------- */
.auth-pill {
    width: auto !important;
    height: 42px !important;
    padding: 0 18px;
    background-color: #dc2626 !important;
    border: 1px solid rgba(255, 255, 255, .5) !important;
    backdrop-filter: blur(8px);
    transition: background-color .2s ease, transform .2s ease;
    box-shadow: 0 8px 20px rgba(220, 38, 38, .35);
}

.auth-pill:hover {
    background-color: #b91c1c !important;
    transform: translateY(-1px);
}

.auth-pill a {
    font-size: 14px !important;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .auth-card__head {
        padding: 18px 22px 18px;
    }

    .auth-title {
        font-size: 18px;
    }

    .auth-card__body {
        padding: 20px 22px 6px;
    }

    .auth-card__foot {
        padding: 14px 22px 16px;
    }

    .auth-head-orb--1 {
        width: 150px;
        height: 150px;
        top: -80px;
        right: -50px;
    }

    .auth-wrap {
        min-height: auto;
        padding-top: 8px;
    }
}

@media (max-width: 767.98px) {
    .auth-top-actions {
        position: static !important;
        top: auto !important;
        right: auto !important;
        justify-content: center;
        width: 100%;
        margin: 0 auto 14px;
    }

    .auth-top-actions .auth-pill {
        width: 100% !important;
        max-width: 360px;
        height: auto !important;
        min-height: 44px;
        padding: 8px 16px;
        text-align: center;
    }

    .auth-top-actions .auth-pill a {
        white-space: normal;
        line-height: 1.35;
    }
}
