﻿/* =========================================================
   ANANT8 AUTHENTICATION PAGE
   ========================================================= */

:root {
    --a8-primary: var(--brand-primary, #5b5ce2);
    --a8-primary-dark: var(--brand-primary-hover, #4849c7);
    --a8-dark: #0b1020;
    --a8-dark-soft: #11182b;
    --a8-text: #111827;
    --a8-muted: #64748b;
    --a8-border: #e5e7eb;
}


/* Remove normal portal spacing for auth page */

body {
    margin: 0;
    background: #ffffff;
}

.anant8-main {
    margin-left: 0 !important;
    width: 100% !important;
}

.anant8-topbar,
.anant8-footer,
.anant8-sidebar {
    display: none !important;
}

.anant8-content {
    padding: 0 !important;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.a8-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 55% 45%;
}


/* =========================================================
   SHOWCASE
   ========================================================= */

.a8-showcase {
    position: relative;
    overflow: hidden;
    background: radial-gradient( circle at 20% 20%, rgba(91, 92, 226, 0.22), transparent 35% ), radial-gradient( circle at 80% 80%, rgba(78, 86, 180, 0.16), transparent 35% ), var(--a8-dark);
    color: #ffffff;
}

.a8-showcase-content {
    min-height: 100vh;
    padding: 42px 70px 30px;
    display: flex;
    flex-direction: column;
}


/* Brand */

.a8-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.a8-logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--a8-primary);
    color: white;
    font-size: 16px;
    font-weight: 800;
}

.a8-logo-image {
    object-fit: contain;
    background: transparent;
    padding: 1px;
}


/* =========================================================
   SLIDES
   ========================================================= */

.a8-slide-container {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 680px;
}

.a8-slide {
    display: none;
    width: 100%;
    animation: a8SlideIn 0.5s ease;
}

    .a8-slide.active {
        display: block;
    }

@keyframes a8SlideIn {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Text */

.a8-eyebrow {
    color: #8587ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
}

.a8-slide h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 1.04;
    letter-spacing: -2.8px;
    font-weight: 700;
}

    .a8-slide h1 span {
        color: #8587ff;
    }

.a8-slide p {
    max-width: 540px;
    margin: 24px 0 0;
    color: #9ca7bd;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   VISUAL CARDS
   ========================================================= */

.a8-visual {
    margin-top: 45px;
    min-height: 210px;
    display: flex;
    align-items: center;
}


/* Chat */

.a8-chat-card {
    width: 390px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.a8-chat-header {
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.a8-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6264e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.a8-chat-header strong {
    display: block;
    font-size: 13px;
}

.a8-chat-header small {
    color: #7f8ba4;
    font-size: 10px;
}

.a8-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35d399;
    margin-left: auto;
}

.a8-message {
    max-width: 75%;
    padding: 11px 13px;
    margin-top: 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
}

    .a8-message.received {
        background: rgba(255, 255, 255, 0.08);
    }

    .a8-message.sent {
        margin-left: auto;
        background: var(--a8-primary);
    }

.a8-message-time {
    text-align: right;
    color: #65718a;
    font-size: 9px;
    margin-top: 7px;
}


/* Automation */

.a8-automation-card {
    width: 390px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.a8-flow-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #d6dbea;
    font-size: 12px;
}

    .a8-flow-node span {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.08);
    }

    .a8-flow-node.active-node {
        border: 1px solid rgba(133, 135, 255, 0.4);
        background: rgba(91, 92, 226, 0.18);
    }

.a8-flow-line {
    height: 20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-left: 28px;
}


/* Chart */

.a8-chart-card {
    width: 390px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.a8-chart-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .a8-chart-top small {
        display: block;
        color: #7f8ba4;
        font-size: 10px;
    }

    .a8-chart-top strong {
        display: block;
        font-size: 28px;
        margin-top: 4px;
    }

.a8-growth {
    color: #5ee2a2;
    font-size: 11px;
}

.a8-chart {
    height: 90px;
    margin-top: 20px;
    display: flex;
    align-items: end;
    gap: 12px;
}

    .a8-chart .bar {
        flex: 1;
        border-radius: 5px 5px 2px 2px;
        background: var(--a8-primary);
        opacity: 0.8;
    }

    .a8-chart .b1 {
        height: 30%;
    }

    .a8-chart .b2 {
        height: 42%;
    }

    .a8-chart .b3 {
        height: 38%;
    }

    .a8-chart .b4 {
        height: 58%;
    }

    .a8-chart .b5 {
        height: 52%;
    }

    .a8-chart .b6 {
        height: 75%;
    }

    .a8-chart .b7 {
        height: 92%;
    }


/* =========================================================
   SLIDER CONTROLS
   ========================================================= */

.a8-slide-controls {
    display: flex;
    gap: 7px;
}

.a8-dot {
    width: 28px;
    height: 4px;
    border: none;
    border-radius: 10px;
    background: #293249;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .a8-dot.active {
        width: 42px;
        background: var(--a8-primary);
    }


/* Footer */

.a8-showcase-footer {
    margin-top: 25px;
    color: #58657e;
    font-size: 11px;
}


/* =========================================================
   LOGIN
   ========================================================= */

.a8-login {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.a8-login-wrapper {
    width: 100%;
    max-width: 430px;
    padding: 50px;
}

.a8-mobile-brand {
    display: none;
}

.a8-login-header {
    margin-bottom: 36px;
}

.a8-welcome-label {
    color: var(--a8-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.a8-login-header h2 {
    margin: 13px 0 10px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1.2px;
}

    .a8-login-header h2 span {
        color: var(--a8-primary);
    }

.a8-login-header p {
    color: var(--a8-muted);
    font-size: 13px;
    margin: 0;
}


/* Form */

.a8-form-group {
    margin-bottom: 22px;
}

    .a8-form-group label {
        display: block;
        margin-bottom: 8px;
        color: #374151;
        font-size: 12px;
        font-weight: 600;
    }

.a8-label-row {
    display: flex;
    justify-content: space-between;
}

    .a8-label-row a {
        color: var(--a8-primary);
        font-size: 11px;
        text-decoration: none;
    }

.a8-input-wrapper {
    position: relative;
}

.a8-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 12px;
}

.a8-input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 0 15px 0 42px;
    border: 1px solid var(--a8-border);
    border-radius: 10px;
    outline: none;
    color: var(--a8-text);
    font-size: 13px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

    .a8-input-wrapper input:focus {
        border-color: var(--a8-primary);
        box-shadow: 0 0 0 3px rgba(91, 92, 226, 0.10);
    }

.a8-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--a8-primary);
    font-size: 11px;
    cursor: pointer;
}


/* Remember */

.a8-form-options {
    margin: -3px 0 24px;
}

.a8-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--a8-muted) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

    .a8-checkbox input {
        display: none;
    }

    .a8-checkbox span {
        width: 16px;
        height: 16px;
        border: 1px solid #d1d5db;
        border-radius: 4px;
    }

    .a8-checkbox input:checked + span {
        background: var(--a8-primary);
        border-color: var(--a8-primary);
    }


/* Button */

.a8-login-button {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 10px;
    background: var(--a8-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .a8-login-button:hover {
        background: var(--a8-primary-dark);
        transform: translateY(-1px);
    }

.a8-button-arrow {
    font-size: 17px;
}


/* Request account */

.a8-divider {
    position: relative;
    margin: 32px 0 20px;
    text-align: center;
}

    .a8-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #eef0f3;
    }

    .a8-divider span {
        position: relative;
        padding: 0 12px;
        background: #ffffff;
        color: #9ca3af;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.1em;
    }

.a8-request-button {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--a8-border);
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .a8-request-button:hover {
        border-color: var(--a8-primary);
        color: var(--a8-primary);
        background: #fafaff;
    }

    .a8-request-button span {
        font-size: 16px;
    }


/* Footer */

.a8-login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 55px;
    color: #a1a9b5;
    font-size: 9px;
}

    .a8-login-footer div {
        display: flex;
        gap: 14px;
    }

    .a8-login-footer a {
        color: #8b95a3;
        text-decoration: none;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .a8-auth-page {
        grid-template-columns: 48% 52%;
    }

    .a8-showcase-content {
        padding: 35px;
    }

    .a8-login-wrapper {
        padding: 35px;
    }

    .a8-slide h1 {
        font-size: 43px;
    }
}


@media (max-width: 760px) {

    .a8-auth-page {
        display: block;
    }

    .a8-showcase {
        min-height: 300px;
    }

    .a8-showcase-content {
        min-height: 300px;
        padding: 25px;
    }

    .a8-slide-container {
        min-height: 220px;
    }

    .a8-slide h1 {
        font-size: 34px;
        letter-spacing: -1.5px;
    }

    .a8-slide p {
        font-size: 13px;
        margin-top: 15px;
    }

    .a8-visual {
        display: none;
    }

    .a8-showcase-footer {
        display: none;
    }

    .a8-login {
        min-height: calc(100vh - 300px);
    }

    .a8-login-wrapper {
        max-width: 500px;
        padding: 40px 25px;
    }

    .a8-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 35px;
        font-size: 18px;
    }
}


@media (max-width: 480px) {

    .a8-showcase {
        min-height: 270px;
    }

    .a8-showcase-content {
        min-height: 270px;
    }

    .a8-slide-container {
        min-height: 185px;
    }

    .a8-slide h1 {
        font-size: 30px;
    }

    .a8-slide p {
        font-size: 12px;
    }

    .a8-login-header h2 {
        font-size: 29px;
    }
}
