/* =========================================================
   SupplyDesk Login Page
   Separate stylesheet so site.css remains untouched
   ========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;
    position: relative;
    background: radial-gradient(circle at top left, rgba(85, 110, 230, 0.22), transparent 24%), radial-gradient(circle at bottom right, rgba(52, 195, 143, 0.14), transparent 22%), linear-gradient(135deg, #eef4ff 0%, #edf2f7 48%, #f8fbff 100%);
    color: #243045;
    overflow-x: hidden;
}

html[data-theme="dark"] .login-page {
    background: radial-gradient(circle at top left, rgba(111, 134, 255, 0.2), transparent 24%), radial-gradient(circle at bottom right, rgba(52, 195, 143, 0.1), transparent 22%), linear-gradient(135deg, #101626 0%, #121a2d 48%, #0d1422 100%);
    color: #edf2f7;
}

.login-shell {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-bg {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

.login-bg-one {
    width: 320px;
    height: 320px;
    top: -80px;
    right: 8%;
    background: rgba(85, 110, 230, 0.16);
}

.login-bg-two {
    width: 260px;
    height: 260px;
    left: 5%;
    bottom: -70px;
    background: rgba(52, 195, 143, 0.16);
}

.login-wrapper {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.login-brand-panel,
.login-form-panel {
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.login-brand-panel {
    min-height: 700px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(59, 89, 209, 0.97), rgba(84, 111, 231, 0.92) 56%, rgba(45, 198, 154, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 70px rgba(31, 56, 123, 0.26);
    color: #fff;
}

.login-brand-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.login-logo-wrap {
    display: flex;
    align-items: center;
}

.login-logo {
    width: auto;
    max-width: 220px;
    height: 56px;
    object-fit: contain;
}

.login-logo-dark {
    display: none;
}

html[data-theme="dark"] .login-logo-light {
    display: none;
}

html[data-theme="dark"] .login-logo-dark {
    display: block;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.login-brand-content {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.login-eyebrow,
.login-form-overline {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-brand-content h1 {
    margin: 0;
    font-size: clamp(2.1rem, 3vw, 3.2rem);
    line-height: 1.08;
    color: #fff;
}

.login-lead {
    margin: 0;
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.login-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.login-feature-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.login-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.05rem;
}

.login-feature-item strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 0.98rem;
}

.login-feature-item span {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    font-size: 0.9rem;
}

.login-demo-card {
    margin-top: 10px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(8, 15, 35, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

    .login-demo-head strong {
        display: block;
        color: #fff;
    }

    .login-demo-head span {
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.85rem;
    }

.login-demo-pill {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .login-demo-pill:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

html[data-theme="dark"] .login-form-panel {
    background: rgba(16, 23, 39, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.login-form-panel-inner {
    width: 100%;
    max-width: 480px;
    padding: 34px;
}

.login-form-header {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

    .login-form-header h2 {
        margin: 4px 0 8px;
        font-size: 2rem;
        color: #243045;
    }

html[data-theme="dark"] .login-form-header h2 {
    color: #edf2f7;
}

.login-form-subtitle {
    margin: 0;
    color: #6f7d95;
    line-height: 1.65;
}

html[data-theme="dark"] .login-form-subtitle {
    color: #9aa5c3;
}

.login-theme-toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.theme-icon-dark {
    display: none;
}

html[data-theme="dark"] .theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-icon-dark {
    display: inline-block;
}

.login-alert {
    border-radius: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-form-group {
    display: grid;
    gap: 8px;
}

.login-label-row,
.login-form-tools,
.login-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-label-hint,
.login-tool-text {
    color: #6f7d95;
    font-size: 0.82rem;
}

html[data-theme="dark"] .login-label-hint,
html[data-theme="dark"] .login-tool-text {
    color: #9aa5c3;
}

.login-input-wrap {
    position: relative;
}

    .login-input-wrap > i:first-child {
        position: absolute;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        color: #7f8aa3;
        z-index: 2;
    }

html[data-theme="dark"] .login-input-wrap > i:first-child {
    color: #9aa5c3;
}

.login-input-wrap .form-control {
    min-height: 56px;
    padding-left: 46px;
    padding-right: 16px;
    border-radius: 16px;
    border: 1px solid rgba(36, 48, 69, 0.12);
    background: rgba(249, 251, 253, 0.98);
    color: #243045;
    box-shadow: none;
}

    .login-input-wrap .form-control::placeholder {
        color: #8390a8;
    }

html[data-theme="dark"] .login-input-wrap .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #edf2f7;
}

    html[data-theme="dark"] .login-input-wrap .form-control::placeholder {
        color: rgba(237, 242, 247, 0.42);
    }

.login-input-wrap .form-control:focus {
    border-color: rgba(85, 110, 230, 0.5);
    box-shadow: 0 0 0 0.22rem rgba(85, 110, 230, 0.12);
}

.login-input-wrap-password .form-control {
    padding-right: 54px;
}

.login-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #7f8aa3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .login-password-toggle:hover {
        background: rgba(85, 110, 230, 0.12);
        color: #556ee6;
    }

html[data-theme="dark"] .login-password-toggle {
    color: #9aa5c3;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    color: #243045;
}

html[data-theme="dark"] .login-check {
    color: #edf2f7;
}

.login-check input {
    accent-color: #556ee6;
}

.login-capslock {
    display: none;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    font-size: 0.82rem;
}

    .login-capslock.show {
        display: inline-flex;
    }

.login-submit {
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(85, 110, 230, 0.2);
}

    .login-submit:hover,
    .login-submit:focus {
        transform: translateY(-1px);
    }

.login-form-panel .text-danger {
    font-size: 0.82rem;
}


.login-action-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -4px;
}

.login-inline-link {
    color: #556ee6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.login-inline-link:hover {
    text-decoration: underline;
}

html[data-theme="dark"] .login-inline-link {
    color: #8da0ff;
}

/* Tablet */
@media (max-width: 991.98px) {
    .login-shell {
        padding: 18px;
    }

    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .login-brand-panel {
        min-height: auto;
        padding: 26px;
    }

    .login-form-panel-inner {
        max-width: 100%;
        padding: 28px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .login-shell {
        padding: 12px;
        align-items: stretch;
    }

    .login-wrapper {
        gap: 16px;
    }

    .login-brand-panel,
    .login-form-panel {
        border-radius: 22px;
    }

    .login-brand-panel {
        padding: 20px;
    }

    .login-brand-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-logo {
        height: 44px;
        max-width: 180px;
    }

    .login-brand-content h1 {
        font-size: 1.65rem;
    }

    .login-lead {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .login-feature-item {
        grid-template-columns: 44px 1fr;
        padding: 14px;
        border-radius: 18px;
    }

    .login-feature-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .login-demo-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-demo-pill {
        justify-content: flex-start;
        font-size: 0.9rem;
        text-align: left;
    }

    .login-form-panel-inner {
        padding: 20px;
    }

    .login-form-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 18px;
    }

        .login-form-header h2 {
            font-size: 1.55rem;
        }

    .login-input-wrap .form-control,
    .login-submit {
        min-height: 52px;
        border-radius: 14px;
    }

    .login-form-tools,
    .login-label-row,
    .login-meta-row,
    .login-action-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    .login-brand-panel {
        padding: 18px;
    }

    .login-form-panel-inner {
        padding: 18px;
    }

    .login-brand-content h1 {
        font-size: 1.45rem;
    }

    .login-feature-item strong {
        font-size: 0.92rem;
    }

    .login-feature-item span,
    .login-demo-head span,
    .login-form-subtitle,
    .login-tool-text {
        font-size: 0.84rem;
    }

    .login-demo-pill {
        padding: 13px 14px;
        font-size: 0.85rem;
    }
}


.login-legal-links {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.login-legal-links a {
    color: #556ee6;
    text-decoration: none;
    font-weight: 600;
}

html[data-theme="dark"] .login-legal-links a {
    color: #8ea2ff;
}

.login-legal-links a:hover {
    text-decoration: underline;
}
.supplydesk-logo-dark {
    display: none;
}

html[data-theme="dark"] .supplydesk-logo-light {
    display: none !important;
}

html[data-theme="dark"] .supplydesk-logo-dark {
    display: block !important;
}

.login-logo-wrap h2,
.login-logo-wrap p {
    margin: 0;
}

.login-brand-top .login-logo-wrap {
    max-width: 100%;
}

    .login-brand-top .login-logo-wrap .login-eyebrow {
        color: rgba(255, 255, 255, 0.82);
    }

@media (max-width: 767.98px) {
    .login-brand-top .login-logo-wrap {
        width: 100%;
    }

        .login-brand-top .login-logo-wrap .d-flex.align-items-center.gap-3.flex-wrap {
            align-items: flex-start !important;
        }
}