/* Sign-in pages (login, register, password reset): one large rounded card, form on the left, brand panel with a
   dashboard preview on the right. Loaded after custom-auth.css, so everything is scoped to .custom-login. */
.custom-login {
    --auth-accent: #5b5ef4;
    --auth-accent-dark: #4a4de0;
    --auth-ink: #0f172a;
    --auth-text: #334155;
    --auth-muted: #64748b;
    --auth-line: #dfe3ee;
    display: block !important;
    min-height: 100vh;
    background:
        radial-gradient(1000px 500px at 50% -10%, rgba(91, 94, 244, .10), transparent 70%),
        #eceff6 !important;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    overflow: visible;
}
.custom-login .login-bg-img,
.custom-login .bg-login { display: none !important; }

.custom-login .custom-login-inner {
    max-width: none !important;
    width: 100%;
    min-height: 100vh;
    padding: 0 24px 18px;
    display: flex;
    flex-direction: column;
    background: transparent;
}
.custom-login .custom-wrapper { order: 1; flex: 1; display: flex; align-items: center; padding: 36px 0 12px; max-width: 1140px; }
.custom-login .dash-header { order: 2; background: transparent !important; box-shadow: none !important; }
.custom-login footer { order: 3; padding: 4px 0; }

/* ---------------------------------------------------------------- the shell */
.custom-login .custom-wrapper .custom-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px;
    gap: 0;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(30, 41, 90, .14), 0 2px 8px rgba(30, 41, 90, .06);
    animation: authRise .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes authRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .custom-login .custom-wrapper .custom-row { animation: none; } }
.auth-logo { display: none; }

/* ---------------------------------------------------------------- form side */
.custom-login .custom-wrapper .custom-row .card {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    width: 100%;
    max-width: none;
    justify-content: center;
}
.custom-login .custom-wrapper .card .card-body {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    height: auto;
}
.custom-login .card-body h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--auth-ink);
    margin: 0 0 6px !important;
}
.auth-sub { color: var(--auth-muted); font-size: 14.5px; margin: 0 0 30px; line-height: 1.5; }

.custom-login .form-label { font-size: 13.5px; font-weight: 600; color: var(--auth-ink); margin-bottom: 8px; }
.auth-field { position: relative; }
.auth-field > .ti { display: none; }
.auth-field .form-control {
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--auth-line);
    background: #fff;
    font-size: 14.5px;
    color: var(--auth-ink);
    transition: border-color .15s, box-shadow .15s;
}
.auth-field .form-control::placeholder { color: #a3afc2; }
.custom-login .auth-field .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(91, 94, 244, .14);
    background: #fff;
}
.auth-field .auth-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #8b97ab;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.auth-field .auth-toggle:hover { color: var(--auth-accent); background: rgba(91, 94, 244, .08); }
.auth-field .auth-toggle .ti { font-size: 18px; }
.auth-field:has(.auth-toggle) .form-control { padding-right: 48px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 22px; }
.auth-row .form-check { margin: 0; display: flex; align-items: center; gap: 8px; padding: 0; }
.auth-row .form-check-input { margin: 0; float: none; width: 17px; height: 17px; border-radius: 5px; border-color: #c3cbdc; cursor: pointer; }
.auth-row .form-check-input:checked { background-color: var(--auth-accent); border-color: var(--auth-accent); }
.auth-row .form-check-label { font-size: 13.5px; color: var(--auth-text); cursor: pointer; }

.custom-login .custom-login-form a { color: var(--auth-accent); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.custom-login .custom-login-form a:hover { color: var(--auth-accent-dark); text-decoration: underline; }

.custom-login .btn.btn-primary {
    height: 48px;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: var(--auth-accent);
    box-shadow: 0 8px 20px rgba(91, 94, 244, .32);
    transition: background .15s, box-shadow .15s, transform .15s;
}
.custom-login .btn.btn-primary:hover { background: var(--auth-accent-dark); box-shadow: 0 10px 24px rgba(91, 94, 244, .4); }
.custom-login .btn.btn-primary:active { transform: translateY(1px); }
.custom-login .btn.btn-primary:focus-visible { outline: 3px solid rgba(91, 94, 244, .35); outline-offset: 2px; }
.custom-login .btn.btn-primary:disabled { opacity: .7; cursor: progress; }
.custom-login .invalid-email, .custom-login .invalid-password { display: block; margin-top: 6px; font-size: 13px; }
.custom-login .custom-login-form .text-center { font-size: 13.5px; color: var(--auth-muted); }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; font-size: 12.5px; color: #8b97ab; }


/* notice + divider above the email field */
.auth-notice { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 14px; background: #f3f4ff; border: 1px solid #e0e2ff; margin: -6px 0 0; }
.auth-notice .ico { width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--auth-accent); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(91, 94, 244, .15); }
.auth-notice strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--auth-ink); }
.auth-notice span { font-size: 12.5px; color: var(--auth-muted); line-height: 1.45; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 20px; color: #98a3b8; font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }


/* form content sits at the top of the card (the base theme spreads it out), and every input is a pill */
.custom-login .custom-wrapper .card .card-body { justify-content: flex-start; }
.custom-login .card-body .form-control:not(.auth-field .form-control) {
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--auth-line);
    font-size: 14.5px;
}
.custom-login .card-body .form-control:not(.auth-field .form-control):focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(91, 94, 244, .14);
}
.custom-login .card-body .invalid-feedback { padding-left: 18px; }

/* ---------------------------------------------------------------- brand panel */
.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 44px 36px;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(520px 320px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(155deg, #6366f6 0%, #5b5ef4 45%, #4b4fe2 100%);
}
.auth-brand .brand-logo {
    display: inline-flex;
    align-self: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 8px 22px rgba(25, 27, 110, .25);
}
.auth-brand .brand-logo img { height: 36px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.auth-brand h1 { font-size: 31px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: 44px 0 14px; color: #fff; max-width: 440px; }
.auth-brand .lead { font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .82); margin: 0 0 30px; max-width: 440px; }

/* decorative dashboard preview (no real data) */
.auth-brand .mock {
    margin-top: auto;
    padding: 9px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .22);
    box-shadow: 0 20px 50px rgba(25, 27, 110, .28);
}
.mock .mock-win { display: grid; grid-template-columns: 74px 1fr; background: #f6f7fb; border-radius: 12px; overflow: hidden; min-height: 250px; color: #1e293b; }
.mock .mock-side { background: #fff; padding: 12px 9px; display: flex; flex-direction: column; gap: 9px; border-right: 1px solid #eef0f6; }
.mock .mock-side i { display: block; height: 7px; border-radius: 4px; background: #e5e8f2; }
.mock .mock-side i:first-child { background: #5b5ef4; width: 70%; height: 9px; margin-bottom: 6px; }
.mock .mock-side i.on { background: #dfe0ff; }
.mock .mock-main { padding: 12px; display: grid; gap: 9px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.mock .kpi { background: #fff; border-radius: 9px; padding: 9px 10px; }
.mock .kpi b { display: block; font-size: 9px; font-weight: 600; color: #64748b; margin-bottom: 7px; }
.mock .kpi .spark { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.mock .kpi .spark s { flex: 1; background: #cfd1ff; border-radius: 2px; }
.mock .kpi .spark s:last-child { background: #5b5ef4; }
.mock .chart { grid-column: span 2; background: #fff; border-radius: 9px; padding: 10px 11px; }
.mock .chart b, .mock .donut b { display: block; font-size: 9px; font-weight: 600; color: #64748b; margin-bottom: 8px; }
.mock .bars { display: flex; align-items: flex-end; gap: 7px; height: 86px; }
.mock .bars s { flex: 1; border-radius: 3px 3px 0 0; background: #6d70f6; }
.mock .bars s:nth-child(even) { background: #f6a37d; flex: .55; }
.mock .donut { background: #fff; border-radius: 9px; padding: 10px 11px; display: flex; flex-direction: column; align-items: center; }
.mock .donut .ring { width: 70px; height: 70px; border-radius: 50%; background: conic-gradient(#5b5ef4 0 46%, #f6a37d 46% 74%, #f4cf5b 74% 100%); position: relative; }
.mock .donut .ring::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #fff; }

/* ---------------------------------------------------------------- navigation row under the card */
.custom-login .navbar, .custom-login .navbar.default { background: transparent !important; box-shadow: none !important; padding: 0; }
.custom-login .navbar .container { max-width: none; padding: 0; justify-content: center; }
.custom-login .dash-header .navbar-brand { display: none; }
.custom-login .navbar .navbar-collapse { justify-content: center !important; flex-grow: 0; }
.custom-login .navbar-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.custom-login .navbar .nav-link, .custom-login .navbar .nav-item .nav-link { color: var(--auth-muted) !important; font-size: 13px; font-weight: 500; padding: 4px 12px !important; }
.custom-login .navbar .nav-link:hover { color: var(--auth-accent) !important; }
.custom-login .navbar .nav-item .nav-link::after { display: none !important; }
.custom-login .navbar-toggler { display: none; }
.custom-login .navbar-collapse.collapse { display: flex !important; }
.custom-login .drp-language a.dropdown-toggle, .custom-login .drp-language .dash-head-link { color: var(--auth-muted) !important; border: 0; background: transparent; font-size: 13px; padding: 4px 12px; }
.custom-login .drp-language .drp-text, .custom-login .drp-language a span { color: var(--auth-muted) !important; }
.custom-login .auth-footer, .custom-login .auth-footer span { color: #8b97ab; font-size: 12.5px; }
.custom-login .auth-footer .container { max-width: none; padding: 0; text-align: center; }


/* language selector: inline chevron, menu opens upward because it sits at the bottom of the page */
.custom-login .drp-language { list-style: none; }
.custom-login .drp-language .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.custom-login .dropdown-toggle::after {
    content: "\ea5f";                       /* tabler chevron-down */
    font-family: "tabler-icons";
    position: static;
    width: auto;
    height: auto;
    background: none;
    border: 0;
    font-size: 14px;
    line-height: 1;
    color: var(--auth-muted);
    transition: transform .2s ease;
}
.custom-login .dropdown-toggle.show::after { transform: rotate(180deg); }
.custom-login .drp-language .dropdown-menu {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    transform: none !important;
    min-width: 150px;
    padding: 6px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(30, 41, 90, .16);
}
.custom-login .drp-language .dropdown-item { border-radius: 8px; font-size: 13px; padding: 8px 12px; }
.custom-login .drp-language .dropdown-item:hover { background: #f1f2ff; color: var(--auth-accent); }
.custom-login .drp-language .dropdown-item.text-primary { color: var(--auth-accent) !important; font-weight: 600; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 991.98px) {
    .custom-login .custom-wrapper .custom-row { grid-template-columns: 1fr; border-radius: 24px; }
    .auth-brand { display: none; }
    .custom-login .custom-wrapper .card .card-body { padding: 28px 10px; }
    .auth-logo { display: block; text-align: center; margin: 22px 0 0; }
    .auth-logo img { height: 48px; width: auto; max-width: 200px; object-fit: contain; }
}
@media (max-width: 575.98px) {
    .custom-login .custom-login-inner { padding: 0 12px 14px; }
}
