﻿

:root {
    --plum: #5a2a4d;
    --plum-dark: #46203b;
    --ink: #1c1a1f;
    --muted: #7b7580;
    --line: #e4e1e6;
    --field: #f4f3f6;
    --page: #eceaee;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #1c2435;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: fixed;
        inset: -2%;
        z-index: -2;
        background-size: cover;
        background-position: center 48%;
        animation: skylineDrift 28s ease-in-out infinite alternate;
        transform-origin: center;
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: linear-gradient(120deg, rgba(19, 26, 49, .28), rgba(76, 38, 70, .24) 48%, rgba(12, 22, 40, .42));
        pointer-events: none;
    }

@keyframes skylineDrift {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08) translate3d(-.6%, -.4%, 0);
    }
}

.shell {
    width: 100%;
    max-width: 1180px;
    min-height: 640px;
    background: #fff;
    border-radius: 24px;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 24px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(40, 20, 40, .12);
}

/* ---------- Left: form ---------- */
.form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
}

.form-wrap {
    width: 100%;
    max-width: 390px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 22px;
    color: var(--plum);
    margin-bottom: 18px;
}

    .brand svg {
        width: 30px;
        height: 30px;
    }

.company-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.company-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

    .company-mark svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 5px 8px rgba(90, 42, 77, .12));
    }

.company-name {
    color: #000000;
    font-size: clamp(20px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.7px;
}

.company-status {
    margin-top: 5px;
    color: #000000;
    font-size: 14.5px;
    line-height: 1.4;
    font-weight: bold;
}

.portal-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--plum);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

    .portal-eyebrow span {
        display: inline-block;
        width: 22px;
        height: 3px;
        border-radius: 3px;
        background: #c99b55;
    }

h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 4px;
}

.sub {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 20px;
}

.social {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

    .social button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        height: 42px;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 8px;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

        .social button:hover {
            background: var(--field);
        }

    .social svg {
        width: 18px;
        height: 18px;
    }

.or {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin: 14px 0;
}

    .or::before, .or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
}

.field {
    margin-bottom: 12px;
}

.control {
    width: 100%;
    height: 44px;
    border: 1px solid transparent;
    background: var(--field);
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
    font-size: 13.5px;
    color: var(--ink);
}

select.control {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237b7580' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.control:focus {
    outline: none;
    border-color: var(--plum);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(90, 42, 77, .12);
}

.pw {
    position: relative;
}

    .pw .control {
        padding-right: 44px;
    }

.eye {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    border-radius: 6px;
}

    .eye:hover {
        color: var(--plum);
    }

    .eye svg {
        width: 18px;
        height: 18px;
    }

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    margin: 4px 0 16px;
}

    .row label {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 0;
        color: var(--ink);
        font-weight: 500;
        font-size: 12.5px;
        cursor: pointer;
    }

    .row input {
        accent-color: var(--plum);
        width: 15px;
        height: 15px;
    }

a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

    a:hover {
        color: var(--plum);
        text-decoration: underline;
    }

.btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--plum);
    color: #fff;
    border: 1px solid var(--plum);
}

    .btn-primary:hover {
        background: var(--plum-dark);
        color: #fff;
        text-decoration: none;
    }

.btn-outline {
    background: #fff;
    color: var(--plum);
    border: 1.5px solid var(--plum);
    margin-top: 10px;
}

    .btn-outline:hover {
        background: var(--plum);
        color: #fff;
        text-decoration: none;
    }

.btn svg {
    width: 18px;
    height: 18px;
}

.btn:focus-visible, a:focus-visible, .eye:focus-visible {
    outline: 2px solid var(--plum);
    outline-offset: 2px;
}

.foot {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 14px;
}

/* ---------- Right: skyline panel ---------- */
.art {
    position: relative;
    min-height: 600px;
    border-radius: 34px 34px 28px 72px;
    overflow: hidden;
    background: linear-gradient(160deg, #234c7c, #211a36);
}

    .art svg.scene {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

.tagline {
    position: absolute;
    top: 22px;
    right: 26px;
    max-width: 260px;
    text-align: right;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    text-shadow: 0 1px 8px rgba(20, 40, 70, .45);
}

@media (max-width: 900px) {
    .shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .art {
        display: block;
        min-height: 360px;
        border-radius: 24px;
    }

    .shell {
        max-width: 620px;
    }

    .form-side {
        padding: 24px 20px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 0;
        align-items: stretch;
    }

    .shell {
        border-radius: 0;
        padding: 8px;
        min-height: 100vh;
    }

    .art {
        min-height: 300px;
    }

    .company-brand {
        gap: 10px;
        margin-bottom: 22px;
    }

    .company-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .form-side {
        padding: 12px;
    }
}

.art {
    background: linear-gradient(160deg, #5a2a4d, #2a1a3a);
}
/* image load aagala-na fallback */
.slides, .slide {
    position: absolute;
    inset: 0;
    margin: 0;
}

.slide {
    opacity: 0;
    transition: opacity 1.1s ease;
}

    .slide.is-active {
        opacity: 1;
        z-index: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.1);
        transition: transform 7s linear; /* slow zoom */
    }

    .slide.is-active img {
        transform: scale(1);
    }

    /* text padikka dark gradient */
    .slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(20,10,25,.35) 0%, rgba(20,10,25,0) 35%, rgba(20,10,25,.78) 100%);
    }

.art::before {
    position: absolute;
    z-index: 4;
    top: 24px;
    right: 26px;
    color: rgba(255,255,255,.94);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.caption {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 76px;
    z-index: 2;
    color: #fff;
}

    .caption > * {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .6s ease, transform .6s ease;
    }

.slide.is-active .caption > * {
    opacity: 1;
    transform: none;
}

.slide.is-active .caption > :nth-child(1) {
    transition-delay: .35s;
}

.slide.is-active .caption > :nth-child(2) {
    transition-delay: .5s;
}

.slide.is-active .caption > :nth-child(3) {
    transition-delay: .65s;
}

.chip {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50rem;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.35);
    margin-bottom: 12px;
}

.caption h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
}

.caption p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 320px;
    color: rgba(255,255,255,.9);
}

/* progress dots */
.dots {
    position: absolute;
    left: 32px;
    bottom: 32px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.dot {
    position: relative;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50rem;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    overflow: hidden;
    transition: width .35s ease;
}

    .dot.is-active {
        width: 38px;
    }

        .dot.is-active::after {
            content: "";
            position: absolute;
            inset: 0;
            background: #fff;
            transform-origin: left;
            animation: fill 5.5s linear forwards;
        }

.art.paused .dot.is-active::after {
    animation-play-state: paused;
}

@keyframes fill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .slide, .slide img, .caption > * {
        transition: none;
    }

    .dot.is-active::after {
        animation: none;
        transform: none;
    }
}

/* Refined background and card polish */
.shell {
    position: relative;
    z-index: 1;
    animation: cardArrive .7s cubic-bezier(.2,.75,.25,1) both;
}

@keyframes cardArrive {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-primary {
    background: linear-gradient(105deg, #5a2a4d, #71315e);
    box-shadow: 0 8px 18px rgba(90,42,77,.17);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(90,42,77,.24);
    }

.control {
    background: #e8f0ff;
}

@media (max-width: 900px) {
    body {
        padding: 20px;
    }

    .shell {
        gap: 16px;
    }

    .form-wrap {
        max-width: 420px;
    }
}

@media (max-width: 560px) {
    .shell {
        padding: 18px 14px;
    }

    .form-side {
        padding: 18px 8px;
    }

    .art {
        min-height: 300px;
    }

    .caption {
        left: 22px;
        right: 22px;
        bottom: 60px;
    }

        .caption h2 {
            font-size: 23px;
        }

    .dots {
        left: 22px;
        bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before, .shell {
        animation: none !important;
    }
}


/* Login button loading state */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: background .25s ease, transform .2s ease;
}

    .btn-primary:hover {
        transform: translateY(-1px);
    }

    .btn-primary:disabled {
        opacity: .85;
        cursor: not-allowed;
        transform: none;
    }

.login-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loginSpin .7s linear infinite;
}

.btn-primary.is-loading .login-spinner {
    display: inline-block;
}

.btn-primary.is-loading .login-arrow {
    display: none;
}

.btn-primary .login-arrow {
    position: absolute;
    right: 18px;
    width: 19px;
    height: 19px;
}

@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-spinner {
        animation-duration: 1.5s;
    }
}

.login-language-selector {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 9999;
    background: #fff;
    border-radius: 6px;
    padding: 5px;
}

#gtranslate_wrapper select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 576px) {
    .login-language-selector {
        top: 10px;
        right: 10px;
    }
}
