/* =============================================================
   NEXELON AMOS — LOGIN PAGE
   Visual language based on the supplied reference:
   white / soft-lilac background, architectural panels,
   thin geometry, premium typography and purple accents.
   ============================================================= */

:root {
    --ink: #171a39;
    --soft: #f5f4ff;
    --line: rgba(112, 39, 232, .18);
    --white: #ffffff;
    --navy: #0e193f;
    --muted: #8991aa;
    --border: #e2e6f0;
    --input-bg: #f9faff;
    --blue: #2868ef;
    --purple: #8e4bdc;
    --pink: #e24bb7;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: var(--ink);
    background: #f7f6ff;
    overflow: hidden;
}

button, input {
    font: inherit;
}

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 25% 40%, rgba(130, 104, 240, .12), transparent 32%),
        linear-gradient(110deg, #ffffff 0%, #f7f6ff 53%, #efedff 100%);
}


/* =============================================================
   CONTENT
   ============================================================= */

.login-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 54% 46%;
    width: 100%;
    min-height: 100vh;
}

.hero-content {
    position: relative;
    padding: 7vh 3vw 5vh 7vw;
}

.brand {
    display: inline-block;
    text-align: center;
}

.brand-name {
    font-size: clamp(26px, 2.45vw, 43px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: .9;
}

.brand-sub {
    margin-top: 7px;
    font-size: 14px;
    letter-spacing: 8px;
    padding-left: 8px;
}

.brand-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 9px;
}

.brand-line span {
    width: 70px;
    height: 1px;
    background: var(--ink);
}

.brand-line small {
    font-size: 7px;
    line-height: 1.8;
    letter-spacing: 3px;
}

.hero-copy {
    margin-top: 7vh;
    max-width: 450px;
}

.eyebrow {
    margin: 0 0 16px;
    font-size: 9px;
    letter-spacing: 3px;
    font-weight: 700;
    color: #74708d;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 4.1vw, 70px);
    line-height: 1.02;
    font-weight: 300;
    letter-spacing: -2.5px;
}

.hero-copy h1 strong {
    color: var(--purple);
    font-weight: 700;
}

.copy-line {
    width: 39px;
    height: 3px;
    margin: 27px 0 26px;
    background: var(--purple);
}

.keywords {
    margin: 0;
    font-size: 10px;
    line-height: 2.35;
    letter-spacing: 4px;
    font-weight: 600;
    color: #73748d;
}

.hero-bottom {
    position: absolute;
    left: 7.5vw;
    bottom: 7vh;
    right: 4vw;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.feature-row {
    display: flex;
    margin-top: 6vh;
    max-width: 520px;
}

.feature {
    flex: 1;
    text-align: center;
    position: relative;
    color: #44507a;
}

.feature + .feature:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 1px;
    height: 70px;
    background: #cdd0e0;
}

.feature-icon {
    height: 35px;
    color: #4d16cf;
    font-size: 27px;
    font-weight: 500;
    line-height: 35px;
}

.feature b,
.feature span {
    display: block;
    font-size: 12px;
    letter-spacing: .4px;
}

.feature b { margin-top: 7px; }
.feature span { margin-top: 2px; }

.brand-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #6f6d9d;
    font-size: 10px;
    letter-spacing: 3px;
}

.brand-footer i {
    width: 38px;
    height: 2px;
    margin-bottom: 8px;
    background: white;
}


/* =============================================================
   LOGIN PANEL
   ============================================================= */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 8vw 40px 5vw;
}

.login-card {
    width: min(100%, 422px);
    /*min-height: 524px;*/
    padding: 25px 30px 25px 30px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .93);
    border: 1px solid rgba(255, 255, 255, .82);
    box-shadow:
        0 20px 55px rgba(48, 38, 105, .16),
        0 3px 14px rgba(48, 38, 105, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.login-header h1 {
    margin: 0 0 3px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.7px;
    color: var(--navy);
}

.login-header h1 {
	color:#057ef9;
}
.login-header h1 span {
	color:#811ef4;
}

.login-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.login-form {
    margin-top: 29px;
}

.input-wrap {
    height: 45px;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--input-bg);
    transition: .2s ease;
}

.input-wrap:focus-within {
    border-color: rgba(54, 105, 239, .55);
    box-shadow: 0 0 0 3px rgba(54, 105, 239, .08);
    background: #fff;
}

.input-wrap input {
    width: 100%;
    height: 100%;
    border: 0;
	border-radius: 7px;
    outline: 0;
    background: transparent;
    padding: 0 43px 0 49px;
    color: var(--navy);
    font-size: 14px;
}

.input-wrap input::placeholder {
    color: #a5acc0;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #8992aa;
}

.input-icon svg,
.password-toggle svg,
.sign-in-btn svg,
.value-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 19px;
    height: 19px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #7f88a3;
    cursor: pointer;
}

.form-options {
    min-height: 29px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4f5870;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1.5px solid #7d879e;
    border-radius: 2px;
    background: #fff;
    position: relative;
}

.remember input:checked + .checkmark {
    border-color: var(--blue);
    background: var(--blue);
}

.remember input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: #2871ee;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}

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

.sign-in-btn {
    width: 100%;
    height: 47px;
    margin-top: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(100deg, #2c6cf2 0%, #7652dc 52%, #dc48b5 100%);
    box-shadow: 0 8px 18px rgba(74, 94, 226, .18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.sign-in-btn svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.6;
}

.sign-in-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 22px rgba(74, 94, 226, .25);
}

.sign-in-btn:active {
    transform: translateY(0);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 47px;
}

.login-divider span {
    height: 1px;
    flex: 1;
    background: #e4e6ee;
}

.login-divider p {
    margin: 0;
    color: #9299ab;
    font-size: 10px;
    white-space: nowrap;
}

.login-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 24px;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #26345e;
    font-size: 10px;
    text-align: center;
}

.value-icon {
    width: 24px;
    height: 24px;
    color: #6d7898;
}

.value-icon svg {
    stroke-width: 1.55;
}

@media (max-width: 480px) {
    .login-page {
        padding: 0;
        align-items: stretch;
    }

    .login-card {
        width: 100%;
        /*min-height: 100vh;
        min-height: 100dvh;*/
        border-radius: 0;
		padding: 25px 28px 25px 28px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-height: 620px) and (min-width: 481px) {
    .login-card {
        min-height: auto;
        padding-top: 25px;
        padding-bottom: 22px;
    }

    .login-divider {
        margin-top: 22px;
    }

    .login-values {
        margin-top: 18px;
    }
}



/* =============================================================
   SIDE CAPTION
   ============================================================= */

.side-caption {
    position: absolute;
    right: 3.8vw;
    bottom: 8vh;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 3;
}

.side-caption span {
    font-size: 9px;
    letter-spacing: 3px;
    font-weight: 700;
    color: #686782;
}

.side-caption i {
    width: 32px;
    height: 3px;
    margin-top: 9px;
    background: var(--purple);
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1100px) {
    .login-content {
        grid-template-columns: 50% 50%;
    }

    .hero-content {
        padding-left: 5vw;
    }

    .hero-bottom {
        left: 5vw;
    }

    .login-panel {
        padding-right: 5vw;
    }

    .bg-purple-column {
        left: 35%;
    }
}

@media (max-width: 820px) {
    body {
        overflow: auto;
    }

    .login-page {
        /*min-height: 100vh;*/
    }

    .login-content {
        display: block;
        min-height: 100vh;
    }

    .hero-content {
        /*min-height: 48vh;*/
        padding: 35px 30px 20px;
    }

    .hero-copy {
        margin-top: 45px;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 8vw, 52px);
    }

    .hero-bottom {
        left: 30px;
        bottom: 25px;
    }

    .login-panel {
        /*min-height: 52vh;*/
        padding: 25px 30px 55px;
    }

    .login-card {
        width: min(500px, 100%);
    }

    .side-caption,
    .bg-purple-column,
    .bg-panel-main,
    .bg-panel-inner {
        display: none;
    }

    .manufacturing-visual {
        left: 38%;
        bottom: 3%;
        width: 48%;
    }
}

@media (max-width: 480px) {
    .hero-content {
        /*min-height: 43vh;*/
        padding: 25px 22px 15px;
    }

    .brand-name {
        font-size: 27px;
    }

    .hero-copy {
        margin-top: 32px;
    }

    .hero-copy h1 {
        font-size: 35px;
    }

    .eyebrow {
        font-size: 8px;
    }

    .hero-bottom {
        left: 22px;
        right: 22px;
        bottom: 18px;
    }

    .login-panel {
        /*min-height: 50vh;*/
        padding: 20px 18px 45px;
    }

    .login-card {
        padding: 32px 25px 25px;
    }

    .login-heading {
        margin-bottom: 27px;
    }

    .login-heading h2 {
        font-size: 30px;
    }
}
