/* ===========================
   CRM Pro Home Page Stylesheet
   Landing Page & Login Design
   =========================== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: var(--text-dark);
}

a {
    color: rgba(var(--border-color), var(--info-color, 1));
    text-decoration: none;
}

/* ===========================
   NAVIGATION BAR
   =========================== */

.navbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ===========================
   MAIN CONTAINER
   =========================== */

.main-container {
    min-height: calc(100vh - 56px);
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

/* ===========================
   LEFT SECTION - FEATURES
   =========================== */

.left-section {
    padding: 1rem 3rem;
    overflow-y: auto;
}

.content-wrapper {
    max-width: 600px;
}

.main-heading {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-dark);
    animation: slideInLeft 0.8s ease;
}

.main-heading .text-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lead {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===========================
   STATS SECTION
   =========================== */

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===========================
   FEATURES SECTION
   =========================== */

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-title i {
    margin-right: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===========================
   BENEFITS SECTION
   =========================== */

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefits-list i {
    font-size: 1.1rem;
}

.benefits-list strong {
    font-weight: 600;
}

/* ===========================
   RIGHT SECTION - LOGIN
   =========================== */

.right-section {
    padding: .5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 100%);
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-header {
    margin-bottom: 2rem;
}

.logo-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-left: auto;
    margin-right: auto;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.login-header p {
    font-size: 0.95rem;
}

/* ===========================
   FORM STYLING
   =========================== */

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-check-input,
.input-group .form-control {
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-group-text {
    border: 1.5px solid var(--border-color) !important;
    color: var(--primary-color);
}

.input-group .form-control {
    border-left: none !important;
}

.input-group .btn {
    border: 1.5px solid var(--border-color) !important;
}

.form-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    user-select: none;
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===========================
   DIVIDER
   =========================== */

.divider {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.divider-text {
    padding: 0 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===========================
   SOCIAL LOGIN
   =========================== */

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-login .btn {
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.social-login i {
    margin-right: 0.5rem;
}

/* ===========================
   SIGNUP LINK
   =========================== */

.signup-link p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.signup-link a {
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: var(--primary-dark) !important;
}

/* ===========================
   DEMO CREDENTIALS
   =========================== */

.demo-credentials {
    background-color: #f0fdf4 !important;
    border-left: 3px solid var(--success-color);
}

.demo-credentials h6 {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===========================
   FOOTER
   =========================== */

footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    margin-top: auto;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

/* ===========================
   MODAL STYLING
   =========================== */

.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none;
    border-radius: 1rem 1rem 0 0;
}

.modal-title {
    font-weight: 700;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1200px) {
    .main-heading {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .main-container {
        min-height: auto;
    }

    .left-section,
    .right-section {
        padding: 2rem 1.5rem;
    }

    .main-heading {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        max-width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .left-section,
    .right-section {
        padding: 2rem 1rem;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .main-heading {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .login-card {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .main-heading {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .lead {
        font-size: 0.95rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 0.75rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .form-control,
    .form-check-input {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .benefits-list li {
        font-size: 0.9rem;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   SCROLLBAR
   =========================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
