/* Modern Design System for Eigen Plotagem Técnica */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1F5B30; /* Primary Forest Green */
    --primary-hover: #164524;
    --primary-light: #f0fdf4;
    --primary-light-border: #bbf7d0;
    --accent: #1F5B30;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 30px 50px -10px rgba(21, 128, 61, 0.1);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--slate-700);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-100);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--slate-900);
    transition: var(--transition-smooth);
}

.logo i {
    width: 24px;
    font-size: 24px;
    text-align: center;
    flex-shrink: 0;
}

.logo span.brand-primary {
    color: var(--primary);
}

.logo span.brand-secondary {
    color: var(--slate-900);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-600);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover {
    color: var(--slate-900);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--slate-800);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-login:hover {
    color: var(--primary);
}

.btn-login i {
    width: 18px;
    font-size: 18px;
    text-align: center;
    transition: transform 0.2s ease;
}

.btn-login:hover i {
    transform: translateX(3px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.25);
}

.btn-primary i {
    width: 18px;
    font-size: 18px;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-gradient);
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-badge i {
    width: 14px;
    font-size: 14px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--slate-900);
    max-width: 850px;
    margin: 0 auto 20px auto;
    letter-spacing: -0.02em;
}

.hero p.hero-subtitle {
    font-size: 1.125rem;
    color: var(--slate-600);
    max-width: 700px;
    margin: 0 auto 36px auto;
    line-height: 1.7;
}

.hero p.hero-subtitle strong {
    color: var(--slate-900);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
}

.btn-hero-primary {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: var(--slate-800);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: var(--slate-50);
    border-color: var(--slate-300);
    transform: translateY(-2px);
}

.hero-image-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.hero-image-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Formats Section */
.formats {
    padding: 80px 0;
    background-color: #f4f6fa;
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--slate-600);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.format-card {
    background-color: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.format-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-header-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.card-header-info span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-600);
}

.card-icon {
    color: var(--slate-600);
    transition: var(--transition-smooth);
    font-size: 28px;
    line-height: 1;
}

.format-card:hover .card-icon {
    color: var(--primary);
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
}

.price-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.price-label {
    color: var(--slate-700);
    font-weight: 500;
}

.price-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Operation Flow Section */
.operation {
    padding: 80px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
}

.operation .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.flow-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

/* Connecting Line */
.flow-wrapper::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 8%;
    right: 8%;
    height: 2px;
    background-color: var(--slate-200);
    z-index: 1;
}

.flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.step-icon-container i {
    width: 32px;
    font-size: 32px;
    text-align: center;
    color: var(--primary);
    transition: var(--transition-smooth);
}

/* Step specific styling */
.flow-step:last-child .step-icon-container {
    background-color: var(--primary);
    border-color: var(--primary);
}

.flow-step:last-child .step-icon-container i {
    color: #ffffff;
}

.flow-step:hover .step-icon-container {
    transform: scale(1.1);
    border-color: var(--primary-light-border);
    box-shadow: 0 10px 20px rgba(21, 128, 61, 0.1);
}

.flow-step:last-child:hover .step-icon-container {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 10px 20px rgba(21, 128, 61, 0.25);
}

.flow-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 6px;
}

.flow-step p {
    font-size: 0.9rem;
    color: var(--slate-600);
    max-width: 160px;
}

/* Footer Section */
footer {
    background-color: #e6eef8;
    padding: 32px 0;
    border-top: 1px solid #d0dfef;
    font-size: 0.85rem;
    color: var(--slate-600);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    width: 18px;
    font-size: 18px;
    text-align: center;
    color: var(--primary);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 16px;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--slate-600);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
}

/* DB Status Badge */
.db-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    border: 1px solid var(--slate-200);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--slate-700);
}

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

.status-dot.connected {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: statusPulse 2s infinite ease-in-out;
}

.status-dot.disconnected {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flow-wrapper::after {
        display: none;
    }
    .flow-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .flow-step p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile behavior for placeholder links */
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero-primary, .btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .formats-grid {
        grid-template-columns: 1fr;
    }
    .footer-wrapper {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-right {
        flex-direction: column;
        gap: 16px;
    }
}

/* Login Page Styles */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
}

.login-left-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.9) 0%, rgba(21, 128, 61, 0.85) 100%), url('../images/plotter_hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #ffffff;
}

.login-left-header .logo {
    color: #ffffff;
}

.login-left-header .logo span.brand-secondary {
    color: #ffffff;
}

.login-left-content {
    max-width: 480px;
    margin: auto 0;
}

.login-left-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.login-left-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.login-left-footer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.login-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background-color: #ffffff;
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-form-wrapper h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.login-form-wrapper p.subtitle {
    font-size: 0.95rem;
    color: var(--slate-600);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 8px;
}

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

.input-icon-left {
    position: absolute;
    left: 14px;
    width: 18px;
    font-size: 18px;
    line-height: 1;
    color: var(--slate-600);
    pointer-events: none;
    text-align: center;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    width: 18px;
    font-size: 18px;
    line-height: 1;
    color: var(--slate-600);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon-right:hover {
    color: var(--slate-900);
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--slate-900);
    background-color: #f1f5f9;
    transition: var(--transition-smooth);
}

.form-group input.with-icon-left {
    padding-left: 44px;
}

.form-group input.with-icon-right {
    padding-right: 44px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light-border);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.05);
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-700);
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--slate-300);
    background-color: #f8fafc;
    cursor: pointer;
    accent-color: var(--primary);
}

.forgot-password-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.forgot-password-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    height: 48px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.25);
}

.register-prompt {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--slate-600);
}

.register-prompt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.register-prompt a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.floating-help-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.floating-help-btn:hover {
    background-color: var(--slate-100);
    color: var(--slate-900);
    transform: scale(1.05);
}

.floating-help-btn svg {
    width: 20px;
    height: 20px;
}

.floating-help-btn i {
    font-size: 20px;
    line-height: 1;
}

.logo-mark-login {
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Mobile Styles for Split Panel */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    .login-left-panel {
        min-height: 320px;
        padding: 32px;
    }
    .login-right-panel {
        padding: 48px 24px;
    }
}
