/* ==========================================================
   EngageX — Auth (Login) + Platform Hub Styles
   ========================================================== */

/* ----------------------------------------------------------
   Brand tokens
   ---------------------------------------------------------- */

:root {
    --vx-navy:        #0a1628;
    --vx-navy-mid:    #0d1f3c;
    --vx-navy-light:  #1a3a6b;
    --vx-orange:      #f97316;
    --vx-orange-dark: #ea6c0a;
    --vx-orange-soft: rgba(249, 115, 22, 0.15);
}

/* ==========================================================
   LOGIN PAGE
   ========================================================== */

.vx-login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f5f7fb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vx-login-wrap {
    display: flex;
    min-height: 100vh;
}

/* ----------------------------------------------------------
   Left panel
   ---------------------------------------------------------- */

.vx-login-left {
    flex: 0 0 42%;
    max-width: 42%;
    background: var(--vx-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow */
.vx-login-left::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Logo */
.vx-login-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 2.5rem;
}

.vx-login-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-login-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.vx-login-logo-x {
    color: var(--vx-orange);
}

/* Headline */
.vx-login-headline h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 2rem;
}

/* Illustration */
.vx-login-illustration {
    margin: 0 auto 2rem;
    width: 100%;
    max-width: 280px;
}

.vx-login-illus-card {
    background: var(--vx-navy-mid);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.vx-login-illus-avatar {
    width: 48px;
    height: 48px;
    background: var(--vx-navy-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.vx-login-illus-lines {
    flex: 1;
}

.vx-login-illus-line {
    height: 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    margin-bottom: 6px;
}

.vx-login-illus-line--lg { width: 80%; }
.vx-login-illus-line--sm { width: 55%; }

.vx-login-illus-dots {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.vx-login-illus-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}

.vx-login-illus-shield {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--vx-orange);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(249,115,22,0.4);
}

/* Feature list */
.vx-login-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.vx-login-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.vx-login-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--vx-navy-light);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--vx-orange);
    flex-shrink: 0;
}

.vx-login-features strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.125rem;
}

.vx-login-features span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

/* ----------------------------------------------------------
   Right panel
   ---------------------------------------------------------- */

.vx-login-right {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.vx-login-lang {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.90rem;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    padding: 0.375rem 0.875rem;
    cursor: pointer;
}

.vx-login-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.vx-login-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.vx-login-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Fields */
.vx-login-field {
    margin-bottom: 1.25rem;
}

.vx-login-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.vx-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.vx-login-input-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
}

.vx-login-input {
    width: 100%;
    height: 50px;
    padding: 0 3rem 0 2.75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.625rem;
    font-size: 0.95rem;
    color: #111827;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.vx-login-input:hover {
    border-color: #9ca3af;
}

.vx-login-input:focus {
    border-color: var(--vx-navy);
    box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.08);
}

.vx-login-toggle-pw {
    position: absolute;
    right: 0.875rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    line-height: 1;
}

.vx-login-toggle-pw:hover {
    color: #374151;
}

/* Remember + Forgot */
.vx-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.vx-login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    cursor: pointer;
}

.vx-login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--vx-navy);
}

.vx-login-forgot {
    color: var(--vx-navy);
    font-weight: 600;
    text-decoration: none;
}

.vx-login-forgot:hover {
    color: var(--vx-orange);
    text-decoration: underline;
}

/* Submit button */
.vx-login-btn {
    width: 100%;
    height: 52px;
    background: var(--vx-navy);
    color: #fff;
    border: none;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.vx-login-btn:hover {
    background: var(--vx-navy-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10,22,40,0.25);
}

.vx-login-btn:active {
    transform: translateY(0);
}

/* Divider */
.vx-login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0 1.25rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

.vx-login-divider::before,
.vx-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Social buttons */
.vx-login-social {
    display: flex;
    gap: 0.75rem;
}

.vx-login-social-btn {
    flex: 1;
    height: 44px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: border-color 0.2s;
}

/* Footer */
.vx-login-footer {
    padding: 1.25rem 4rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vx-login-footer a {
    color: #6b7280;
    text-decoration: none;
}

.vx-login-footer a:hover {
    color: var(--vx-navy);
}

.vx-login-copyright {
    width: 100%;
    margin-top: 0.25rem;
}

/* ----------------------------------------------------------
   Login responsive
   ---------------------------------------------------------- */

@media (max-width: 991.98px) {
    .vx-login-left {
        display: none;
    }
    .vx-login-right {
        flex: 1;
    }
    .vx-login-form-wrap {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .vx-login-form-wrap {
        padding: 2rem 1.25rem;
    }
    .vx-login-footer {
        padding: 1rem 1.25rem;
    }
    .vx-login-social {
        flex-direction: column;
    }
}

/* ==========================================================
   PLATFORM HUB
   ========================================================== */

.vx-hub-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f5f7fb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
}

/* ----------------------------------------------------------
   Hub Navbar
   ---------------------------------------------------------- */

.vx-hub-nav {
    background: var(--vx-navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.vx-hub-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.vx-hub-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.vx-hub-brand strong {
    color: var(--vx-orange);
}

.vx-hub-brand-icon {
    display: flex;
    align-items: center;
}

.vx-hub-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.vx-hub-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.vx-hub-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.vx-hub-nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.vx-hub-nav-link--soon {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.vx-hub-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--vx-orange);
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 2rem;
    letter-spacing: 0.03em;
}

.vx-hub-nav-user {
    margin-left: auto;
    flex-shrink: 0;
}

.vx-hub-user-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2rem;
    padding: 0.375rem 0.875rem 0.375rem 0.375rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.vx-hub-user-btn:hover {
    background: rgba(255,255,255,0.18);
}

.vx-hub-user-btn::after {
    filter: invert(1);
}

.vx-hub-avatar {
    width: 30px;
    height: 30px;
    background: var(--vx-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.vx-hub-signin-btn {
    background: var(--vx-orange);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.vx-hub-signin-btn:hover {
    background: var(--vx-orange-dark);
    color: #fff;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.vx-hub-hero {
    background: linear-gradient(135deg, var(--vx-navy) 0%, var(--vx-navy-light) 100%);
    padding: 4rem 2rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vx-hub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(249,115,22,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(249,115,22,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.vx-hub-hero-inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.vx-hub-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vx-orange);
    margin-bottom: 0.875rem;
}

.vx-hub-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.vx-hub-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* ----------------------------------------------------------
   Product grid
   ---------------------------------------------------------- */

.vx-hub-main {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.vx-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Card base */
.vx-hub-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.vx-hub-card:not(.vx-hub-card--soon):hover {
    border-color: var(--vx-navy);
    box-shadow: 0 8px 32px rgba(10,22,40,0.12);
    transform: translateY(-3px);
}

.vx-hub-card--soon {
    opacity: 0.7;
    cursor: default;
}

.vx-hub-card-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
    border: 1px solid #e5e7eb;
}

/* Card icon */
.vx-hub-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vx-hub-card--engagex .vx-hub-card-icon {
    background: rgba(10,22,40,0.08);
    color: var(--vx-navy);
}

.vx-hub-card--cms .vx-hub-card-icon {
    background: rgba(25,135,84,0.1);
    color: #198754;
}

.vx-hub-card--campaign .vx-hub-card-icon {
    background: rgba(111,66,193,0.1);
    color: #6f42c1;
}

.vx-hub-card--email .vx-hub-card-icon {
    background: rgba(13,110,253,0.1);
    color: #0d6efd;
}

/* Card body */
.vx-hub-card-body {
    flex: 1;
    min-width: 0;
}

.vx-hub-card-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.vx-hub-card-body p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.vx-hub-card-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vx-hub-card-modules span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    padding: 0.2rem 0.625rem;
}

/* Arrow */
.vx-hub-card-arrow {
    font-size: 1.5rem;
    color: #d1d5db;
    flex-shrink: 0;
    align-self: center;
    transition: color 0.2s, transform 0.2s;
}

.vx-hub-card:not(.vx-hub-card--soon):hover .vx-hub-card-arrow {
    color: var(--vx-navy);
    transform: translateX(4px);
}

/* ----------------------------------------------------------
   Stats row
   ---------------------------------------------------------- */

.vx-hub-stats {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}

.vx-hub-stat {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.875rem;
}

.vx-hub-stat i {
    font-size: 1.25rem;
    color: var(--vx-orange);
}

.vx-hub-stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.vx-hub-stat span {
    color: #6b7280;
    font-size: 0.8rem;
}

/* ----------------------------------------------------------
   Hub footer
   ---------------------------------------------------------- */

.vx-hub-footer {
    background: var(--vx-navy);
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.vx-hub-footer-links {
    display: flex;
    gap: 1.25rem;
}

.vx-hub-footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.vx-hub-footer a:hover {
    color: #fff;
}

/* ----------------------------------------------------------
   Hub responsive
   ---------------------------------------------------------- */

@media (max-width: 991.98px) {
    .vx-hub-grid {
        grid-template-columns: 1fr;
    }
    .vx-hub-nav-links {
        display: none;
    }
    .vx-hub-hero-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 575.98px) {
    .vx-hub-main {
        padding: 1.5rem 1rem;
    }
    .vx-hub-card {
        flex-direction: column;
        gap: 1rem;
    }
    .vx-hub-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
