/* style.css - Main styles for landing page, login, register */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-family: 'Inter', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    line-height: 1.5;
    background-color: var(--light-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 160px 24px 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    color: var(--gray-800);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--box-shadow-lg);
}

.floating-card i {
    color: var(--success-color);
    font-size: 24px;
}

/* Features Section */
.features {
    padding: 80px 24px;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--gray-800);
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.feature-card {
    padding: 32px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-500);
    line-height: 1.6;
}

/* Security Section */
.security {
    padding: 80px 24px;
    background: var(--gray-100);
}

.security .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.security-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--gray-800);
}

.security-content p {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.security-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.security-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.security-item h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.security-item p {
    font-size: 14px;
    margin-bottom: 0;
}

.security-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 64px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-col p {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-400);
}

/* Auth Pages (Login/Register) */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    margin: 24px;
}

.auth-card {
    padding: 48px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 32px;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.auth-header p {
    color: var(--gray-500);
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: var(--gray-700);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-icon input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: all 0.3s;
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toggle-password {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-image {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.auth-image-content {
    text-align: center;
}

.auth-image-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.auth-image-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
}

.benefits-list {
    list-style: none;
    text-align: left;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.benefits-list i {
    color: var(--success-color);
}

/* Password Strength */
.password-strength {
    margin-top: 6px;
}

.strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 4px;
}

.strength-bar[data-strength="weak"] {
    background: linear-gradient(90deg, var(--danger-color) 33%, var(--gray-200) 33%);
}

.strength-bar[data-strength="medium"] {
    background: linear-gradient(90deg, var(--warning-color) 66%, var(--gray-200) 66%);
}

.strength-bar[data-strength="strong"] {
    background: linear-gradient(90deg, var(--success-color) 100%, var(--gray-200) 0);
}

.strength-text {
    font-size: 12px;
    color: var(--gray-500);
}
/* Default nav (desktop) */
.nav-links {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
}

/* Mobile menu button always visible on small screens */
.mobile-menu {
    display: none; /* hidden on desktop */
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* ──────────────────────────────
   Mobile view
─────────────────────────────── */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-links {
        display: none;                    /* hidden by default on mobile */
        flex-direction: column;           /* vertical stack */
        position: absolute;
        top: 100%;                        /* below navbar */
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        gap: 20px;
        z-index: 999;
        text-align: center;
    }

    /* When toggled open */
    .nav-links.active {
        display: flex !important;         /* force visible */
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Buttons inside nav should stack nicely too */
    .nav-links .btn {
        width: 100%;
        margin: 10px 0;
    }
}
/* ────────────────────────────────
   LANDING / LOGIN / REGISTER – mobile
───────────────────────────────── */

@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
    margin: 20px 16px;
  }

  .auth-image {
    display: none;
  }

  .auth-card {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .btn-block {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .input-icon i {
    font-size: 1.1rem;
  }

  .password-strength {
    margin-top: 4px;
  }
}

@media (max-width: 360px) {
  .auth-header h1 {
    font-size: 1.65rem;
  }

  .btn {
    padding: 11px 18px;
    font-size: 0.95rem;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 0.94rem;
  }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-container,
    .security .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
        margin: 16px;
    }
    
    .auth-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Smooth transitions */
.password-strength .strength-bar::before {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.password-requirements li {
    transition: color 0.2s ease;
}

.password-requirements li i {
    transition: all 0.2s ease;
}

.password-requirements li.valid i {
    transform: scale(1.1);
}

/* Password input focus effect */
#password:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Strength indicator animations */
@keyframes strengthPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.strength-bar[data-strength]::before {
    animation: strengthPulse 0.3s ease;
}




/* Password Strength Styles */
.password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.strength-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar[data-strength="weak"]::before {
    width: 33%;
    background: #ef4444;
}

.strength-bar[data-strength="medium"]::before {
    width: 66%;
    background: #f59e0b;
}

.strength-bar[data-strength="strong"]::before {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
    min-width: 80px;
}

.strength-text.weak {
    color: #ef4444;
}

.strength-text.medium {
    color: #f59e0b;
}

.strength-text.strong {
    color: #10b981;
}

/* Password Requirements List */
.password-requirements {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 12px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}

.password-requirements li i {
    font-size: 12px;
    width: 16px;
}

.password-requirements li.valid {
    color: #10b981;
}

.password-requirements li.invalid {
    color: #ef4444;
}

.password-requirements li i.fa-check-circle {
    color: #10b981;
}

.password-requirements li i.fa-times-circle {
    color: #ef4444;
}