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

body.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f1115;
    color: #111827;
    overflow-x: hidden;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* Intelligence section below login (theme-matched) */
.intelligence-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f1115 100%);
    padding: 3.5rem 4rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.intelligence-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.intelligence-copy {
    flex: 1;
    min-width: 280px;
}

.intelligence-headline {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgb(252, 82, 20);
    margin: 0 0 1rem;
}

.intelligence-subtitle {
    font-size: 0.98rem;
    color: #e5e7eb;
    margin: 0;
    max-width: 420px;
}

.intelligence-features {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.intel-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-width: 100px;
}

.intel-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(67, 109, 145, 0.15);
    color: #436D91;
    border: 1px solid rgba(67, 109, 145, 0.35);
}

.intel-icon-wrap.intel-icon-theft { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border-color: rgba(59, 130, 246, 0.4); }
.intel-icon-wrap.intel-icon-misplace { background: rgba(34, 197, 94, 0.2); color: #22c55e; border-color: rgba(34, 197, 94, 0.4); }
.intel-icon-wrap.intel-icon-insights { background: rgba(168, 85, 247, 0.2); color: #a855f7; border-color: rgba(168, 85, 247, 0.4); }
.intel-icon-wrap.intel-icon-ai { background: rgba(67, 109, 145, 0.2); color: #436D91; border-color: rgba(67, 109, 145, 0.4); }
.intel-icon-wrap.intel-icon-consumption { background: rgba(234, 179, 8, 0.2); color: #eab308; border-color: rgba(234, 179, 8, 0.4); }

.intel-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e5e7eb;
    text-align: center;
    line-height: 1.2;
}

/* Overview – What will it solve? section (theme-matched) */
.overview-section {
    background: #0f1115;
    padding: 3.5rem 4rem 4rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.overview-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.overview-heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: #436D91;
    margin: 0 0 0.75rem;
}

.overview-subheading {
    font-size: 0.98rem;
    color: #9ca3af;
    margin: 0 auto 2.5rem;
    max-width: 560px;
    line-height: 1.5;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.overview-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 1rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.overview-card-image {
    height: 250px;
    background: rgba(67, 109, 145, 0.2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #436D91;
}

.overview-card-image-img {
    padding: 0;
    overflow: hidden;
}

.overview-card-image-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overview-card-image-emergency {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.overview-card-image-optimize {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.overview-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f9fafb;
    margin: 0;
    padding: 1.1rem 1.25rem 0.35rem;
}

.overview-card-desc {
    font-size: 0.88rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
    padding: 0 1.25rem 1.25rem;
}

/* Moveable Asset Optimization section */
.optimization-section {
    background: #0f1115;
    padding: 3.5rem 4rem 4rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.optimization-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.optimization-heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: orangered;
    text-align: center;
    margin: 0 0 2rem;
}

.optimization-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem 0 0 0;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.optimization-card-heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fbbf24;
    margin: 0;
}

/* Optimization section banner image – responsive, page center */
.optimization-banner-wrap {
    width: 100%;
    max-width: 1100px;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 0.75rem;
}

.optimization-banner-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

/* LEFT PANEL */
.auth-left {
    flex: 1.1;
    background: radial-gradient(circle at top left, #436D91 0, #111827 55%);
    color: #f9fafb;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 3.5rem 4rem;
}

.auth-left-inner {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand {
    margin-bottom: 3rem;
}

.auth-logo {
    height: 200px;
}

.logo-s {
    height: 200px;
    margin-left: 40px;
}

.auth-copy .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.auth-copy h1 {
    font-size: 2.6rem;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: #f9fafb;
}

.auth-copy .subtitle {
    max-width: 360px;
    color: #e5e7eb;
    font-size: 0.98rem;
}

.auth-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.metric {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.metric-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f9fafb;
}

/* RIGHT PANEL */
.auth-right {
    flex: 0.9;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem 2.25rem;
    box-shadow:
        0 22px 45px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(148, 163, 184, 0.18);
}

/* Mobile-only logo above "Welcome back" – hidden on desktop */
.auth-card-logo-mobile {
    display: none;
}

.eyebrow-small {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111827;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.auth-subtitle strong {
    color: #111827;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 2.4rem;
    padding-right: 2.6rem;
    height: 2.8rem;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.input-with-icon .form-control:focus {
    border-color: #436D91;
    box-shadow: 0 0 0 1px rgba(67, 109, 145, 0.35);
}

.input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
}

.password-input {
    padding-right: 3rem !important;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 0;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #4b5563;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: #4b5563;
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.primary-btn {
    background: #436D91 !important;
    border-color: #436D91 !important;
    color: #111827 !important;
    font-weight: 600;
    border-radius: 999px;
    height: 2.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.primary-btn:hover {
    background: #ea580c !important;
    border-color: #ea580c !important;
    color: #111827 !important;
}

.divider {
    position: relative;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 1.25rem 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.google-btn {
    border-radius: 999px;
    height: 2.7rem;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-color: #e5e7eb;
    color: #374151;
    background: #ffffff;
}

.google-btn:disabled {
    opacity: 0.9;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.link-small {
    font-size: 0.8rem;
    color: #436D91;
    text-decoration: none;
}

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

.auth-footer-text {
    font-size: 0.88rem;
    color: #6b7280;
    text-align: center;
}

.auth-footer-text a {
    color: #436D91;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .auth-shell {
        flex-direction: column;
    }

    /* On tablet & mobile, show login first, hero second */
    .auth-right {
        order: 1;
        flex: none;
        width: 100%;
        padding: 2.5rem 2rem;
    }

    .auth-left {
        order: 2;
        flex: none;
        width: 100%;
        padding: 2.5rem 2rem;
    }

    /* Mobile: logo above "Welcome back" in card; hide logo in left panel */
    .auth-card-logo-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        column-gap: 12px;
        margin-bottom: 1.25rem;
    }
    .auth-card-logo-mobile .auth-logo,
    .auth-card-logo-mobile .logo-s {
        height: 80px;
        display: block;
    }
    .auth-left .auth-brand {
        display: none;
    }

    .auth-left-inner {
        max-width: 560px;
    }

    .auth-metrics {
        max-width: 460px;
    }

    .intelligence-section {
        padding: 2.5rem 2rem;
    }

    .intelligence-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .intelligence-features {
        width: 100%;
        justify-content: flex-start;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .intel-feature {
        min-width: 0;
    }

    .intel-feature:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .overview-section {
        padding: 2.5rem 2rem;
    }

    .overview-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .optimization-section {
        padding: 2.5rem 2rem;
    }

    .optimization-heading {
        font-size: 1.65rem;
    }

    .optimization-banner-wrap {
        margin-top: 1.5rem;
    }
}

@media (max-width: 720px) {
    .auth-left {
        padding: 2rem 1.5rem;
    }

    .auth-right {
        padding: 2rem 1.5rem 2.5rem;
    }

    .auth-copy h1 {
        font-size: 2rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        box-shadow:
            0 16px 32px rgba(15, 23, 42, 0.18),
            0 0 0 1px rgba(148, 163, 184, 0.14);
    }

    .auth-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intelligence-section {
        padding: 2rem 1.5rem;
    }

    .intelligence-inner {
        gap: 2rem;
    }

    .intelligence-headline {
        font-size: 1.75rem;
    }

    .intelligence-subtitle {
        font-size: 0.9rem;
    }

    .intelligence-features {
        gap: 1rem;
    }

    .intel-feature {
        min-width: 0;
    }

    .intel-feature:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .intel-icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }

    .intel-label {
        font-size: 0.72rem;
    }

    .overview-section {
        padding: 2rem 1.5rem;
    }

    .overview-cards {
        max-width: none;
    }

    .overview-heading {
        font-size: 1.5rem;
    }

    .overview-subheading {
        margin-bottom: 2rem;
        font-size: 0.9rem;
    }

    .overview-card-image {
        height: 120px;
        font-size: 2.5rem;
    }

    .overview-card-title {
        font-size: 1rem;
        padding: 1rem 1rem 0.25rem;
    }

    .overview-card-desc {
        font-size: 0.85rem;
        padding: 0 1rem 1rem;
    }

    .optimization-section {
        padding: 2rem 1.5rem;
    }

    .optimization-heading {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .optimization-banner-wrap {
        margin-top: 1.25rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        border-radius: 0;
    }

    .optimization-card {
        padding: 1.25rem 1.5rem;
    }

    .optimization-card-heading {
        font-size: 1.05rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .auth-left,
    .auth-right {
        padding: 1.5rem 1rem;
    }

    .auth-logo {
        height: 100px;
    }

    .auth-copy h1 {
        font-size: 1.65rem;
    }

    .auth-metrics {
        grid-template-columns: 1fr;
    }

    .intelligence-section {
        padding: 1.5rem 1rem;
    }

    .intelligence-headline {
        font-size: 1.5rem;
    }

    .intelligence-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .intel-feature:nth-child(5) {
        grid-column: 1;
        justify-self: stretch;
    }

    .intel-feature {
        flex-direction: row;
        gap: 1rem;
        text-align: left;
        padding: 0.75rem;
        background: rgba(30, 41, 59, 0.5);
        border-radius: 0.75rem;
        border: 1px solid rgba(148, 163, 184, 0.25);
    }

    .intel-label {
        text-align: left;
    }

    .overview-section {
        padding: 1.5rem 1rem;
    }

    .overview-heading {
        font-size: 1.35rem;
    }

    .overview-card-image {
        height: 100px;
    }

    .optimization-section {
        padding: 1.5rem 1rem;
    }

    .optimization-heading {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    .optimization-banner-wrap {
        margin-top: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .optimization-card {
        padding: 1rem 1.25rem;
        border-radius: 0.75rem 0 0 0;
    }

    .optimization-card-heading {
        font-size: 1rem;
    }
}