/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563EB;
    --primary-blue-dark: #1E40AF;
    --primary-blue-light: #3B82F6;
    --primary-blue-lighter: #60A5FA;
    --primary-blue-lightest: #DBEAFE;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success-green: #10B981;
    --error-red: #EF4444;
    --gradient-blue: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Background Decoration */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.03);
    backdrop-filter: blur(30px);
    animation: float 20s ease-in-out infinite;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 1;
}

/* Two Column Layout */
.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.login-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-preview-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login Card */
.login-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 400;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@keyframes formShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--gray-400);
    z-index: 1;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px var(--primary-blue-lightest);
}

.form-input:focus + .input-icon,
.input-wrapper:has(.form-input:focus) .input-icon {
    color: var(--primary-blue);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--gray-600);
}

.error-message {
    font-size: 13px;
    color: var(--error-red);
    margin-top: 4px;
    min-height: 18px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.form-input.error {
    border-color: var(--error-red);
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Forgot Link */
.forgot-link {
    font-size: 14px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

/* Checkbox */
.form-options {
    display: flex;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.checkbox-label {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 400;
}

/* Button Group */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Login Button */
.login-button {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.login-button.primary {
    color: var(--white);
    background: var(--gradient-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.login-button.secondary {
    color: var(--primary-blue);
    background: var(--white);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.login-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-button.primary:hover::before {
    left: 100%;
}

.login-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.login-button.secondary:hover {
    background: var(--primary-blue-lightest);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.login-button:hover .button-icon {
    transform: translateX(4px);
}

.login-button.loading .button-text {
    opacity: 0;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
    color: var(--gray-400);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.divider span {
    padding: 0 16px;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.social-button:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.google-button svg {
    width: 20px;
    height: 20px;
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    animation: slideInRight 0.8s ease-out;
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.mockup-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red {
    background: #ff5f56;
}

.control-dot.yellow {
    background: #ffbd2e;
}

.control-dot.green {
    background: #27c93f;
}

.mockup-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    flex: 1;
    text-align: center;
}

.mockup-ai-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mockup-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.mockup-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
}

.mockup-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mockup-tab.active {
    background: var(--primary-blue-lightest);
    color: var(--primary-blue);
}

.mockup-tab svg {
    width: 16px;
    height: 16px;
}

.mockup-messages {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--gray-50);
    transition: all 0.3s ease;
    position: relative;
}

.mockup-message:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mockup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-avatar.whatsapp {
    border-color: #25D366;
}

.mockup-avatar.instagram {
    border-color: #E4405F;
}

.mockup-avatar.tiktok {
    border-color: #000000;
}

.mockup-message-content {
    flex: 1;
    min-width: 0;
}

.mockup-message-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.mockup-message-text {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
    margin-bottom: 4px;
}

.mockup-message-time {
    font-size: 11px;
    color: var(--gray-500);
}

.mockup-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--error-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.mockup-auto-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: var(--white);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mockup-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.mockup-action-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mockup-action-btn.ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: var(--white);
}

.mockup-action-btn.auto {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: var(--white);
}

.mockup-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mockup-pipeline {
    padding: 12px 16px;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

.mockup-pipeline svg {
    color: var(--primary-blue);
}

/* Footer */
.login-footer {
    margin-top: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.login-footer p {
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dashboard-preview-section {
        order: -1;
    }

    .dashboard-mockup {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 28px;
    }

    .logo {
        font-size: 24px;
    }

    .logo-icon svg {
        width: 40px;
        height: 40px;
    }

    .form-input {
        padding: 12px 14px 12px 44px;
        font-size: 15px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .login-button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .mockup-messages {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .login-layout {
        gap: 24px;
    }
}

/* Success Animation */
@keyframes success {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.login-button.success {
    background: var(--success-green);
    animation: success 0.5s ease;
}

