/*
Theme Name: MAPTECH CONSOLE Theme
Theme URI: https://maptechgh.com
Author: MAPTECH
Author URI: https://t.me/maptechgh
Description: Professional data bundle management theme for Ghana
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maptech-theme
*/

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --text-dark: #111827;
    --text-light: #6b7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   IMPROVED HEADER STYLES - MOBILE OPTIMIZED
   ======================================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.site-header .container {
    padding: 0 1rem;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo / Site Branding */
.site-branding {
    flex-shrink: 0;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
}

.site-logo img,
.site-branding img,
.custom-logo-link img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation & Buttons Wrapper */
.header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.main-navigation {
    display: flex;
}

.main-navigation ul,
.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.header-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--light-gray);
}

/* Button Text Switching for Small Screens */
.btn-short {
    display: none;
}

.btn-full {
    display: inline;
}

/* ========================================
   FRONT PAGE ENHANCEMENTS
   ======================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-large i {
    transition: transform 0.3s ease;
}

.btn-large:hover i {
    transform: translateX(5px);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.trust-item i {
    font-size: 1.25rem;
}

/* Stats Section */
.stats-section {
    background: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Networks Section */
.networks-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.network-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.network-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.network-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.network-icon i {
    font-size: 2rem;
    color: #fff;
}

.network-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.network-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.network-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
}

.network-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works-section {
    background: #fff;
    padding: 5rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.step-number {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.testimonial-stars {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    margin: 2rem 0 1.5rem;
}

.cta-note {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 1.5rem;
}

/* ========================================
   IMPROVED FOOTER STYLES
   ======================================== */

/* Footer Wave Effect */
.footer-wave {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: var(--dark-color);
}

/* Main Footer */
.site-footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    margin-top: 4rem;
}

.footer-main {
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Footer About Section */
.footer-about {
    max-width: 350px;
}

.footer-logo img,
.footer-logo .custom-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem 0;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Footer Sections */
.footer-section h4.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-links li {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.25rem;
}

.footer-links i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.footer-contact i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.2);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-contact div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-contact strong {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-contact span,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

/* Trust Badges */
.footer-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
}

.trust-badge i {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links-bottom {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links-bottom a:hover {
    color: var(--primary-color);
}

.footer-links-bottom .separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-credit {
    display: flex;
    align-items: center;
}

.footer-credit p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-credit a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-credit a:hover {
    color: white;
}

.footer-credit i {
    margin: 0 0.25rem;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top i {
    pointer-events: none;
}

/* ========================================
   MODERN SPLIT-SCREEN AUTH DESIGN
   ======================================== */

/* Hide header and footer on auth page */
body.maptech-auth-page .site-header,
body.maptech-auth-page .site-footer {
    display: none !important;
}

/* Main Auth Container */
.maptech-modern-auth {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Left Panel - Branding */
.auth-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand {
    position: relative;
    z-index: 2;
}

.auth-logo img,
.auth-logo .custom-logo {
    max-width: 180px;
    height: auto;
}

.auth-site-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.auth-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-hero-text {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Features List */
.auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.feature-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Stats */
.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.auth-footer-info {
    position: relative;
    z-index: 2;
}

.back-home-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
}

.back-home-link:hover {
    opacity: 0.8;
}

/* Right Panel - Forms */
.auth-right-panel {
    flex: 1;
    background: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
}

.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-mobile-logo img,
.auth-mobile-logo .custom-logo {
    max-width: 140px;
    height: auto;
}

.auth-mobile-logo h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 0;
}

/* Modern Tabs */
.modern-auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.modern-tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: #6b7280;
    transition: all 0.3s;
    position: relative;
    border-bottom: 3px solid transparent;
}

.modern-tab-btn:hover {
    color: var(--primary-color);
}

.modern-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tab Content */
.modern-tab-content {
    display: none;
}

.modern-tab-content.active {
    display: block;
    animation: modernFadeIn 0.4s ease;
}

@keyframes modernFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0 0 0.5rem 0;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Form Groups */
.modern-form-group {
    margin-bottom: 1.5rem;
}

.modern-form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modern-form-group label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.modern-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.modern-input::placeholder {
    color: #9ca3af;
}

.modern-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Password Field */
.modern-password-field {
    position: relative;
}

.modern-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.modern-password-toggle:hover {
    color: var(--primary-color);
}

/* Password Strength */
.modern-password-strength {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.modern-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.modern-strength-weak {
    width: 33%;
    background: var(--danger-color);
}

.modern-strength-medium {
    width: 66%;
    background: var(--warning-color);
}

.modern-strength-strong {
    width: 100%;
    background: var(--secondary-color);
}

.modern-password-hints {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.modern-password-hints small {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.modern-password-hints small i {
    font-size: 0.5rem;
}

.modern-password-hints small.met {
    color: var(--secondary-color);
}

/* Form Extras */
.modern-form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.modern-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.modern-checkbox span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.forgot-link,
.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-link:hover,
.back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Modern Button */
.modern-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modern-btn-primary {
    background: var(--primary-color);
    color: white;
}

.modern-btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.modern-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modern-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: modernSpin 0.8s linear infinite;
}

@keyframes modernSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert */
.modern-alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: none;
    animation: modernSlideDown 0.3s;
    font-size: 0.95rem;
}

@keyframes modernSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-alert.show {
    display: block;
}

.modern-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #a7f3d0;
}

.modern-alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fecaca;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet & Mobile Breakpoint */
@media (max-width: 1024px) {
    .auth-left-panel {
        flex: 0.8;
    }

    .auth-hero-title {
        font-size: 2rem;
    }

    .auth-features-list {
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-about {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }

    /* Mobile slide-in menu with gradient background */
    .header-nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #4f46e5 0%, #7c3aed 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        gap: 1.5rem;
        overflow-y: auto;
        z-index: 999;
    }

    .header-nav-wrapper.active {
        right: 0;
    }

    /* Mobile menu overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    /* Header buttons at the top */
    .header-buttons {
        order: -1;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Button styling for mobile menu */
    .header-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-weight: 600;
        font-size: 1rem;
    }

    .header-buttons .btn-outline {
        border: 2px solid #fff;
        color: #fff;
        background: transparent;
    }

    .header-buttons .btn-outline:hover {
        background: #fff;
        color: var(--primary-color);
    }

    .header-buttons .btn-primary {
        background: #fff;
        color: var(--primary-color);
        border: 2px solid #fff;
    }

    .header-buttons .btn-primary:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    }

    /* Navigation styling for colored background */
    .main-navigation {
        width: 100%;
    }

    .main-navigation ul,
    .main-navigation .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .main-navigation a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .main-navigation a:hover {
        color: #fff;
        padding-left: 0.5rem;
        border-bottom-color: #fff;
    }

    /* Hero Section Mobile */
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .trust-indicators {
        gap: 1rem;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 2rem;
    }

    /* Features Grid Mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Steps Grid Mobile */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Testimonials Grid Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Auth Page Mobile */
    .maptech-modern-auth {
        flex-direction: column;
    }

    .auth-left-panel {
        padding: 2rem;
        min-height: auto;
    }

    .auth-mobile-logo {
        display: block;
    }

    .auth-brand,
    .auth-hero-content,
    .auth-footer-info {
        display: none;
    }

    .auth-right-panel {
        padding: 2rem 1.5rem;
    }

    .modern-form-row {
        grid-template-columns: 1fr;
    }

    .modern-auth-tabs {
        gap: 0.5rem;
    }

    .modern-tab-btn {
        font-size: 1rem;
        padding: 0.875rem 0.5rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .modern-form-extras {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Footer Mobile */
    .site-footer {
        margin-top: 3rem;
    }

    .footer-wave svg {
        height: 40px;
    }

    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links-bottom .separator {
        display: none;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-badge {
        width: 100%;
    }

    /* Scroll to top button on mobile */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .site-header {
        padding: 0.5rem 0;
    }

    .site-logo {
        font-size: 1.1rem;
    }

    .site-logo img,
    .site-branding img,
    .custom-logo-link img {
        max-height: 32px;
    }

    /* Mobile menu adjustments */
    .header-nav-wrapper {
        width: 260px;
        padding: 1.5rem;
    }

    /* Switch to shorter button text */
    .btn-full {
        display: none;
    }

    .btn-short {
        display: inline;
    }

    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Hero Section Small Mobile */
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Stats Grid Small Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Sections Padding Small Mobile */
    .features-section,
    .networks-section,
    .cta-section,
    .how-it-works-section,
    .testimonials-section {
        padding: 3rem 0;
    }

    /* Auth Page Small Mobile */
    .auth-right-panel {
        padding: 1.5rem 1rem;
    }

    .auth-form-container {
        max-width: 100%;
    }

    .modern-password-hints {
        flex-direction: column;
        gap: 0.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Footer Small Mobile */
    .footer-main {
        padding: 1.5rem 0 1rem;
    }

    .footer-section h4.footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .footer-contact li {
        gap: 0.75rem;
    }

    .footer-contact i {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Smaller scroll to top on very small screens */
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Smooth scroll behavior for entire page */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
