/* Ecurem QMS Auth UIX v0.3.2 */

.eq-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--qms-primary) 10%, transparent), transparent 34%),
        linear-gradient(135deg, var(--qms-bg) 0%, color-mix(in srgb, var(--qms-bg) 92%, var(--qms-primary)) 100%);
    color: var(--qms-text);
}

.eq-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 0.92fr) minmax(520px, 1.45fr);
}

.eq-auth-brand-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(48, 16, 76, .98), rgba(79, 28, 122, .97));
    color: #fff;
}

.eq-auth-brand-panel::before,
.eq-auth-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.eq-auth-brand-panel::before {
    width: 420px;
    height: 420px;
    right: -210px;
    top: -120px;
    background: rgba(255, 255, 255, .06);
}

.eq-auth-brand-panel::after {
    width: 320px;
    height: 320px;
    left: -150px;
    bottom: -160px;
    background: rgba(255, 255, 255, .05);
}

.eq-auth-brand-inner {
    min-height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 46px 50px;
}

.eq-auth-logo-link {
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
}

.eq-auth-logo {
    width: 78px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .12));
}

.eq-auth-brand-copy {
    margin: auto 0;
    max-width: 470px;
}

.eq-auth-kicker {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .16em;
    font-weight: 800;
    opacity: .78;
    margin-bottom: 18px;
}

.eq-auth-brand-copy h2 {
    margin: 0;
    font-size: clamp(34px, 3.4vw, 54px);
    line-height: 1.02;
    font-weight: 780;
    letter-spacing: -.035em;
}

.eq-auth-brand-copy p {
    margin: 22px 0 0;
    max-width: 410px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,.78);
}

.eq-auth-brand-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,.70);
}

.eq-auth-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8ef0b2;
    box-shadow: 0 0 0 5px rgba(142,240,178,.12);
}

.eq-auth-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px clamp(30px, 5vw, 88px);
}

.eq-auth-mobile-brand {
    display: none;
}

.eq-auth-card {
    position: relative;
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 42px 44px;
    border: 1px solid var(--qms-border);
    border-radius: 20px;
    background: color-mix(in srgb, var(--qms-surface) 96%, transparent);
    box-shadow: 0 24px 70px rgba(20, 20, 35, .10);
    overflow: hidden;
}

.eq-auth-card-topline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5d2478, #7a39a5, #a264d0);
}

.eq-auth-card h1,
.eq-auth-card h2 {
    margin: 0 0 12px;
    color: var(--qms-text);
    letter-spacing: -.025em;
}

.eq-auth-card h1 {
    font-size: 31px;
    line-height: 1.15;
}

.eq-auth-card h2 {
    font-size: 23px;
}

.eq-auth-card p {
    color: var(--qms-muted);
    line-height: 1.58;
}

.eq-auth-card form {
    margin-top: 24px;
}

.eq-auth-card form p,
.eq-auth-card form .form-group,
.eq-auth-card form .mb-3 {
    margin: 0 0 18px;
}

.eq-auth-card label {
    display: block;
    margin: 0 0 7px;
    color: var(--qms-text);
    font-size: 13px;
    font-weight: 750;
}

.eq-auth-card input[type="text"],
.eq-auth-card input[type="email"],
.eq-auth-card input[type="password"],
.eq-auth-card input[type="number"],
.eq-auth-card input[type="tel"],
.eq-auth-card select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid var(--qms-border);
    border-radius: 10px;
    outline: none;
    background: var(--qms-bg);
    color: var(--qms-text);
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.eq-auth-card input:focus,
.eq-auth-card select:focus {
    border-color: color-mix(in srgb, var(--qms-primary) 70%, #fff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--qms-primary) 15%, transparent);
}

.eq-auth-card .helptext,
.eq-auth-card .form-text,
.eq-auth-card small {
    display: block;
    margin-top: 6px;
    color: var(--qms-muted);
    font-size: 12px;
    line-height: 1.45;
}

.eq-auth-card .errorlist,
.eq-auth-card .alert-danger,
.eq-auth-card .invalid-feedback {
    margin: 8px 0;
    padding: 10px 12px;
    list-style: none;
    border-radius: 9px;
    background: rgba(180, 35, 24, .08);
    color: #b42318;
    font-size: 13px;
}

.eq-auth-card button,
.eq-auth-card input[type="submit"],
.eq-auth-card .btn {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 760;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}

.eq-auth-card .btn-primary,
.eq-auth-card button[type="submit"],
.eq-auth-card input[type="submit"] {
    background: linear-gradient(135deg, #5d2478, #7a39a5);
    color: #fff;
    box-shadow: 0 8px 22px rgba(93, 36, 120, .20);
}

.eq-auth-card .btn-primary:hover,
.eq-auth-card button[type="submit"]:hover,
.eq-auth-card input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(93, 36, 120, .25);
}

.eq-auth-card .btn-secondary,
.eq-auth-card .btn-light {
    background: var(--qms-bg);
    color: var(--qms-text);
    border: 1px solid var(--qms-border);
}

.eq-auth-card .btn-link,
.eq-auth-card a {
    color: var(--qms-primary);
}

.eq-auth-card .float-end,
.eq-auth-card .float-right {
    float: none !important;
}

.eq-auth-card .d-flex,
.eq-auth-card .form-actions,
.eq-auth-card .btn-toolbar {
    gap: 10px;
    flex-wrap: wrap;
}

.eq-auth-card img {
    max-width: 100%;
}

.eq-auth-card img[src*="qr"],
.eq-auth-card canvas {
    display: block;
    margin: 20px auto;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
}

.eq-auth-card ol,
.eq-auth-card ul {
    padding-left: 22px;
    color: var(--qms-muted);
}

.eq-auth-card code {
    font-size: 12px;
    background: var(--qms-bg);
    border: 1px solid var(--qms-border);
    padding: 2px 6px;
    border-radius: 6px;
}

.eq-auth-card .progress {
    height: 6px;
    margin: 18px 0 24px;
    border-radius: 99px;
    background: var(--qms-border);
    overflow: hidden;
}

.eq-auth-card .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5d2478, #8f4db8);
}

.eq-auth-card .alert {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--qms-border);
    background: var(--qms-bg);
    color: var(--qms-text);
}

.eq-auth-login-links {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--qms-border);
    display: flex;
    gap: 10px 18px;
    flex-wrap: wrap;
    font-size: 13px;
}

.eq-auth-footer {
    width: min(100%, 560px);
    margin: 18px auto 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    color: var(--qms-muted);
    font-size: 12px;
}

[data-theme="dark"] .eq-auth-card {
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

[data-theme="dark"] .eq-auth-card .errorlist,
[data-theme="dark"] .eq-auth-card .alert-danger {
    color: #ffb4ab;
    background: rgba(255, 87, 87, .10);
}

@media (max-width: 980px) {
    .eq-auth-shell {
        grid-template-columns: 1fr;
    }

    .eq-auth-brand-panel {
        display: none;
    }

    .eq-auth-main {
        padding: 34px 22px;
    }

    .eq-auth-mobile-brand {
        display: flex;
        justify-content: center;
        margin: 0 auto 22px;
    }

    .eq-auth-mobile-brand .eq-auth-logo {
        width: 68px;
    }
}

@media (max-width: 560px) {
    .eq-auth-main {
        justify-content: flex-start;
        padding: 24px 14px;
    }

    .eq-auth-card {
        padding: 32px 22px;
        border-radius: 16px;
    }

    .eq-auth-card h1 {
        font-size: 27px;
    }

    .eq-auth-footer {
        margin-top: 14px;
    }
}
