﻿
/* =========================================================
   CLOUDX LOGIN — DESIGN 4
   Modern Split-Screen Authentication
   ========================================================= */

:root {
    --navy: #081735;
    --navy-light: #142d57;
    --blue: #1258e8;
    --blue-hover: #0e48c4;
    --purple: #773ee8;
    --teal: #12b893;
    --text: #17233b;
    --muted: #64718b;
    --border: #e5eaf3;
    --canvas: #f8faff;
    --white: #ffffff;
}

/* ================= GLOBAL ================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

    a:focus-visible,
    button:focus-visible,
    input:focus-visible {
        outline: 3px solid #95baff;
        outline-offset: 3px;
    }

/* ================= MAIN LAYOUT ================= */

.login-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ================= BRAND PANEL ================= */

.brand-panel {
    position: relative;
    min-width: 0;
    display: flex;
    background: linear-gradient( 145deg, #081735 0%, #102b55 100% );
    color: var(--white);
    overflow: hidden;
}

.brand-panel-inner {
    width: 100%;
    max-width: 720px;
    min-height: 100%;
    margin: 0 auto;
    padding: 35px 58px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Lucent branding */

.panel-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 15px;
}

.panel-logo-box {
    display: grid;
    place-items: center;
    width: 69px;
    height: 59px;
    background: white;
    border-radius: 8px;
}

.panel-lucent-logo {
    width: 60px;
    height: 51px;
    object-fit: contain;
}

.panel-brand-divider {
    width: 1px;
    height: 32px;
    background: #557296;
}

.panel-cloudx {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

    .panel-cloudx span {
        color: #78cfff;
    }

/* Brand heading */

.brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0;
}

.brand-eyebrow {
    color: #a0c4f5;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
}

.brand-content h1 {
    margin: 21px 0 18px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

    .brand-content h1 span {
        color: #72e0c4;
    }

.brand-content > p {
    max-width: 450px;
    margin: 0;
    color: #bdcee8;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
}

/* ================= BRAND ILLUSTRATION ================= */

.login-illustration {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 250px;
    margin: 12px auto 0;
}

.illustration-platform {
    position: absolute;
    left: 50%;
    width: 240px;
    height: 110px;
    border-radius: 25px;
    transform: translateX(-50%) rotate(-30deg) skew(24deg, 12deg);
}

.platform-back {
    bottom: 18px;
    background: #518acb;
    box-shadow: 12px 12px 0 #294e83;
}

.platform-front {
    bottom: 35px;
    background: #dceeff;
    border: 2px solid #8fbcf8;
    box-shadow: 6px 7px 0 #80aef2, 12px 14px 0 #3a6fb4;
}

.illustration-cloud {
    position: absolute;
    left: 50%;
    top: 0;
    width: 220px;
    transform: translateX(-50%);
    z-index: 2;
    filter: drop-shadow( 0 13px 16px #020b2055 );
}

    .illustration-cloud svg {
        display: block;
        width: 100%;
    }

.illustration-label {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #3e6395;
    border-radius: 9px;
    background: #173866;
    color: #e7f2ff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.label-symbol {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 15px;
}

.blue-symbol {
    background: #295aa3;
    color: #c2e4ff;
}

.green-symbol {
    background: #146b60;
    color: #a2f5d7;
}

.purple-symbol {
    background: #6142a2;
    color: #ebd7ff;
}

.label-discover {
    top: 6px;
    left: 0;
}

.label-secure {
    top: 94px;
    right: 0;
}

.label-analyze {
    bottom: 8px;
    left: 5%;
}

/* ================= BRAND FEATURES ================= */

.brand-features {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid #345177;
}

.brand-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d0def0;
    font-size: 11px;
    font-weight: 500;
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.feature-blue {
    background: #62a4ff;
}

.feature-purple {
    background: #b69bff;
}

.feature-green {
    background: #57dcad;
}

/* ================= BRAND FOOTER ================= */

.brand-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #345177;
    color: #92accb;
    font-size: 10px;
}

/* ================= FORM PANEL ================= */

.form-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 50px 35px;
}

.form-panel-inner {
    width: 100%;
    max-width: 410px;
}

/* Mobile branding */

.mobile-brand {
    display: none;
}

/* Back link */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #73819b;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 42px;
}

    .back-link span {
        font-size: 17px;
    }

    .back-link:hover {
        color: var(--blue);
    }

/* ================= LOGIN HEADER ================= */

.login-header {
    margin-bottom: 32px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    background: #edf4ff;
    color: #265db9;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--teal);
    border-radius: 50%;
}

.login-header h2 {
    margin: 22px 0 10px;
    color: var(--navy);
    font-size: clamp(28px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.9px;
}

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

/* ================= FORM GROUPS ================= */

.form-group {
    margin-bottom: 22px;
}

    .form-group label {
        display: block;
        margin-bottom: 10px;
        color: #273653;
        font-size: 12px;
        font-weight: 600;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper input {
        width: 100%;
        min-height: 52px;
        padding: 14px 16px 14px 46px;
        background: #ffffff;
        border: 1px solid #dce4f0;
        border-radius: 9px;
        color: var(--text);
        font-size: 13px;
        font-weight: 400;
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .input-wrapper input::placeholder {
            color: #9ca9bb;
        }

        .input-wrapper input:hover {
            border-color: #b6c9e5;
        }

        .input-wrapper input:focus {
            border-color: #3b78e8;
            box-shadow: 0 0 0 3px #eaf2ff;
        }

/* Input icons */

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    color: #8999af;
    pointer-events: none;
}

    .input-icon svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Password */

.password-wrapper input {
    padding-right: 75px;
}

.toggle-password {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 7px;
    color: #62718a;
    font-size: 12px;
    font-weight: 600;
}

    .toggle-password:hover {
        color: var(--blue);
    }

/* ================= ERROR MESSAGE ================= */

.message {
    display: none;
    padding: 13px 14px;
    margin: 0 0 18px;
    background: #fff0f1;
    border: 1px solid #ffdadd;
    border-radius: 8px;
    color: #ad293d;
    font-size: 12px;
    line-height: 1.65;
}

/* ================= LOGIN BUTTON ================= */

.login-button {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 0;
    border-radius: 9px;
    background: var(--navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    .login-button:hover:not(:disabled) {
        background: #19315d;
        box-shadow: 0 9px 20px #08173524;
    }

    .login-button:disabled {
        opacity: 0.75;
        cursor: not-allowed;
    }

.button-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.button-label {
    flex: 1;
    text-align: center;
}

.button-arrow {
    font-size: 16px;
    line-height: 1;
}

/* ================= LOADING ================= */

.loading-content {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.spinner {
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 2px solid #ffffff66;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================= REGISTRATION ================= */

.register-section {
    margin-top: 28px;
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

    .register-section p {
        margin: 0;
        color: #738099;
        font-size: 12px;
        line-height: 1.7;
    }

    .register-section a {
        color: var(--blue);
        font-weight: 600;
        margin-left: 4px;
    }

        .register-section a:hover {
            text-decoration: underline;
        }

/* ================= LOGIN FOOTER ================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 43px;
}

    .login-footer > span:nth-child(2) {
        flex-shrink: 0;
        color: #9ca8b9;
        font-size: 10px;
        text-align: center;
    }

.footer-line {
    height: 1px;
    flex: 1;
    background: var(--border);
}

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

@media (max-width: 1100px) {

    .brand-panel-inner {
        padding-inline: 35px;
    }

    .brand-content h1 {
        font-size: 36px;
    }

    .form-panel {
        padding-inline: 30px;
    }
}

@media (max-width: 850px) {

    .login-page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 35px 24px;
    }

    .form-panel-inner {
        max-width: 430px;
    }

    .mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 40px;
    }

        .mobile-brand img {
            width: 60px;
            height: 52px;
            object-fit: contain;
        }

    .mobile-divider {
        width: 1px;
        height: 27px;
        background: #d4dce9;
    }

    .mobile-brand strong {
        font-size: 24px;
        font-weight: 700;
        letter-spacing: -0.7px;
        color: var(--navy);
    }

        .mobile-brand strong span {
            color: var(--blue);
        }

    .back-link {
        display: flex;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {

    .form-panel {
        align-items: flex-start;
        padding: 27px 20px;
    }

    .mobile-brand {
        margin-bottom: 30px;
    }

    .login-header {
        margin-bottom: 28px;
    }

        .login-header h2 {
            font-size: 29px;
        }

        .login-header p {
            font-size: 13px;
        }

    .form-group {
        margin-bottom: 19px;
    }

    .login-footer {
        margin-top: 35px;
    }
}

/* ================= ACCESSIBILITY ================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
