@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green-500: #22c55e;
    --green-400: #4ade80;
    --green-600: #16a34a;
    --green-glow: rgba(34,197,94,0.35);
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--slate-950);
    overflow: hidden;
}

/* ═══════ LAYOUT SPLIT ═══════ */
.split-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ═══════ PAINEL ESQUERDO — SHOWCASE ═══════ */
.left-panel {
    flex: 1;
    background: linear-gradient(160deg, #020617 0%, #0a1628 40%, #0d2847 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

/* Grid de fundo animado */
.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34,197,94,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,197,94,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Glow orbs — verde principal */
.left-panel::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34,197,94,0.15) 0%, transparent 70%);
    top: 20%;
    left: 30%;
    border-radius: 50%;
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}

/* Orb extra azul/cyan */
.left-panel .orb-blue {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    border-radius: 50%;
    animation: orbFloat2 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
/* Orb extra roxo */
.left-panel .orb-purple {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
    top: 5%;
    right: 20%;
    border-radius: 50%;
    animation: orbFloat 12s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -25px) scale(1.15); }
}

.showcase {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: var(--green-400);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.showcase-badge i {
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.showcase h1 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.showcase h1 span {
    background: linear-gradient(135deg, var(--green-400), #06b6d4, #86efac);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 4s ease infinite;
}
@keyframes textGradient {
    0%   { background-position: 0% center; }
    50%  { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.showcase-desc {
    font-size: 15px;
    color: var(--slate-400);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 440px;
}

/* Dashboard mockup cards */
.mock-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.mock-card {
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(34,197,94,0.12);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.4s;
    animation: mockFadeIn 0.6s ease-out both;
}
.mock-card:nth-child(1) { animation-delay: 0.1s; }
.mock-card:nth-child(2) { animation-delay: 0.2s; }
.mock-card:nth-child(3) { animation-delay: 0.3s; }
.mock-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes mockFadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.mock-card:hover {
    border-color: rgba(34,197,94,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34,197,94,0.08);
}
.mock-card:nth-child(2):hover {
    border-color: rgba(96,165,250,0.3);
    box-shadow: 0 8px 30px rgba(59,130,246,0.08);
}
.mock-card:nth-child(3):hover {
    border-color: rgba(192,132,252,0.3);
    box-shadow: 0 8px 30px rgba(168,85,247,0.08);
}
.mock-card:nth-child(4):hover {
    border-color: rgba(251,191,36,0.3);
    box-shadow: 0 8px 30px rgba(245,158,11,0.08);
}

.mock-card .mc-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mock-card .mc-label i { font-size: 13px; }
.mock-card:nth-child(1) .mc-label i { color: var(--green-400); }
.mock-card:nth-child(2) .mc-label i { color: #60a5fa; }
.mock-card:nth-child(3) .mc-label i { color: #c084fc; }
.mock-card:nth-child(4) .mc-label i { color: #fbbf24; }

.mock-card .mc-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.mock-card.green .mc-value { color: var(--green-400); }
.mock-card.blue .mc-value { color: #60a5fa; }
.mock-card.purple .mc-value { color: #c084fc; }
.mock-card.amber .mc-value { color: #fbbf24; }

.mock-card .mc-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--slate-800);
    overflow: hidden;
    margin-top: 4px;
}
.mock-card .mc-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--green-400));
    animation: barGrow 1.5s ease-out both;
}
.mock-card:nth-child(2) .mc-bar-fill {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.mock-card:nth-child(3) .mc-bar-fill {
    background: linear-gradient(90deg, #a855f7, #c084fc);
}
@keyframes barGrow {
    0% { width: 0%; }
}

.mock-card .mc-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green-400);
    background: rgba(34,197,94,0.1);
    padding: 2px 8px;
    border-radius: 8px;
}
.mock-card:nth-child(4) .mc-trend {
    color: #fbbf24;
    background: rgba(251,191,36,0.1);
}

/* Feature pills abaixo do dashboard */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-300);
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.06);
}
.feature-pill i { font-size: 13px; }
.feature-pill:nth-child(1) i { color: var(--green-400); }
.feature-pill:nth-child(2) i { color: #f472b6; }
.feature-pill:nth-child(3) i { color: #60a5fa; }
.feature-pill:nth-child(4) i { color: #fbbf24; }
.feature-pill:nth-child(5) i { color: #c084fc; }
.feature-pill:nth-child(1) { border-color: rgba(34,197,94,0.15); }
.feature-pill:nth-child(2) { border-color: rgba(244,114,182,0.15); }
.feature-pill:nth-child(3) { border-color: rgba(96,165,250,0.15); }
.feature-pill:nth-child(4) { border-color: rgba(251,191,36,0.15); }
.feature-pill:nth-child(5) { border-color: rgba(192,132,252,0.15); }

/* ═══════ PAINEL DIREITO — FORMULÁRIO ═══════ */
.right-panel {
    width: 540px;
    min-width: 700px;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 60px;
    overflow-y: auto;
    position: relative;
}
/* Detalhe decorativo no topo do painel direito */
.right-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-400), #06b6d4, #a855f7, #f472b6, var(--green-500));
    background-size: 300% 100%;
    animation: topBarShift 6s ease infinite;
}
@keyframes topBarShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 44px;
}
.brand-logo img {
    height: 200px;
    object-fit: contain;
}
.brand-logo .brand-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.5px;
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--slate-900), var(--green-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.form-subtitle {
    font-size: 15px;
    color: var(--slate-500);
    margin-bottom: 36px;
}

/* Alerts */
.alert-box {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-box i { font-size: 16px; }
.alert-box.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.alert-box.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.alert-box.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* Form fields */
.field {
    margin-bottom: 24px;
}
.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 8px;
}
.field .input-wrap {
    position: relative;
}
.field input {
    width: 100%;
    padding: 14px 16px;
    padding-right: 44px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--slate-900);
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
}
.field input::placeholder {
    color: var(--slate-400);
}
.field input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12), 0 4px 12px rgba(34,197,94,0.08);
    background: #fafffe;
}
.field .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green-500);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s;
}
.field input:focus ~ .input-icon {
    color: var(--green-600);
}
.field .input-icon.clickable {
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.2s;
}
.field .input-icon.clickable:hover {
    color: var(--slate-600);
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.field-row label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--green-600);
    text-decoration: none;
    transition: all 0.2s;
}
.forgot-link:hover {
    color: var(--green-500);
    text-decoration: underline;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, var(--green-500), #059669, var(--green-600));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.3px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(34,197,94,0.25);
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}
.btn-login:hover::before {
    left: 100%;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34,197,94,0.4), 0 0 0 3px rgba(34,197,94,0.1);
}
.btn-login:active {
    transform: translateY(0);
}
.btn-login.loading {
    pointer-events: none;
    opacity: 0.85;
}
.btn-login.loading .btn-text { visibility: hidden; }
.btn-login .spinner {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}
.btn-login.loading .spinner { display: flex; }
.btn-login .spinner::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--slate-200), transparent);
}
.divider span {
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-400);
    white-space: nowrap;
}

.register-link {
    text-align: center;
    font-size: 15px;
    color: var(--slate-500);
}
.register-link a {
    color: var(--green-600);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    padding: 8px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.register-link a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    box-shadow: 0 4px 12px rgba(34,197,94,0.25);
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    transition: all 0.3s;
    z-index: 9999;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
    color: white;
}

/* ═══════ RESPONSIVO ═══════ */
@media (max-width: 1024px) {
    .left-panel { display: none; }
    .right-panel {
        width: 100%;
        min-width: unset;
        min-height: 100vh;
    }
    html, body { overflow-y: auto; }
}

@media (max-width: 480px) {
    .right-panel {
        padding: 40px 24px;
    }
    .form-title { font-size: 24px; }
    .brand-logo .brand-name { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
