:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --text-muted-color: #666;
    --text-title-color: #2c3e50;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --card-bg: white;
    --card-background: white;
    --border-color: #e0e0e0;
    --hero-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --card-border: 1px solid rgba(0, 0, 0, 0.1);
    --card-gradient: linear-gradient(135deg, #f8faff 0%, #e9f1ff 100%);
    --3d-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    --btn-primary-glow: 0 0 25px rgba(99, 102, 241, 0.5);
    --btn-secondary-glow: 0 0 25px rgba(0, 0, 0, 0.1);
    --gradient-text-light: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-text-dark: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    --feature-icon-bg: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #d946ef 100%);
    --feature-icon-color: white;
    --btn-border-color: rgba(0, 0, 0, 0.2);
    --hero-stats-bg: rgba(0, 0, 0, 0.1);
    --link-color: #4a90e2;
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #e2e8f0;
    --accent-color: #f87171;
    --background-color: #1a1a1a;
    --text-color: #e2e8f0;
    --text-muted-color: #a1a1a1;
    --text-title-color: #ffffff;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --card-bg: #2d2d2d;
    --card-background: #2d2d2d;
    --border-color: #3a3a3a;
    --hero-gradient: linear-gradient(135deg, #4f46e5 0%, #7e22ce 50%, #a21caf 100%);
    --card-border: 1px solid rgba(255, 255, 255, 0.08);
    --card-gradient: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --3d-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(45, 45, 45, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --btn-primary-glow: 0 0 25px rgba(79, 70, 229, 0.5);
    --btn-secondary-glow: 0 0 25px rgba(255, 255, 255, 0.15);
    --gradient-text-light: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 100%);
    --gradient-text-dark: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    --feature-icon-bg: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 100%);
    --feature-icon-color: white;
    --btn-border-color: rgba(255, 255, 255, 0.3);
    --hero-stats-bg: rgba(255, 255, 255, 0.1);
    --link-color: #60a5fa;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

/* Enhanced navbar style for light mode */
[data-theme="light"] .navbar,
.navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.nav-btn:first-child {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.nav-btn:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 10%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    perspective: 1000px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
    transform-style: preserve-3d;
}

.floating-note {
    position: absolute;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-note i {
    font-size: 2rem;
    color: var(--primary-color);
}

.note-1 { top: 20%; left: 20%; animation-delay: 0s; }
.note-2 { top: 40%; left: 50%; animation-delay: -2s; }
.note-3 { top: 60%; left: 30%; animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate3d(1, 1, 1, 0deg); }
    50% { transform: translateY(-20px) rotate3d(1, 1, 1, 10deg); }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features-section {
    padding: 6rem 5%;
    background-color: var(--card-bg);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-title-color);
}

.section-title .gradient-text {
    background-image: var(--gradient-text-light);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    text-shadow: none;
}

.section-title .gradient-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #d946ef 100%);
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: var(--card-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    transform: translateZ(-1px);
    transition: all 0.4s ease;
    border-radius: 20px;
}

[data-theme="dark"] .feature-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.feature-card:hover {
    transform: translateY(-15px) translateZ(10px) scale(1.02);
    box-shadow: var(--3d-shadow);
}

.feature-card:hover::before {
    opacity: 0.8;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--feature-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--feature-icon-color);
    font-size: 30px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    transform: translateZ(20px);
}

.feature-icon i {
    color: var(--feature-icon-color);
    font-size: 1.8rem;
}

.feature-card:hover .feature-icon {
    transform: translateZ(30px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-title-color);
}

.feature-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background: var(--background-color);
    color: var(--text-color);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.footer-brand {
    text-align: center;
    max-width: 500px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.footer-tagline {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    perspective: 300px;
}

.social-link:hover {
    transform: translateY(-5px) rotateY(15deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-links-column h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-title-color);
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 0.75rem;
}

.footer-links-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-creator {
    font-weight: 500;
}

.footer-creator i {
    color: var(--accent-color);
    animation: heartbeat 1.5s infinite;
}

.creator-link {
    color: var(--link-color);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.creator-link:hover {
    color: var(--primary-color);
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 5% 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Authentication Styles */
.auth-container {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 60px;
    background-image: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(74, 144, 226, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

/* Enhanced background with animated particles */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%, rgba(74, 144, 226, 0.1) 1px, transparent 1px),
                     radial-gradient(circle at 75% 75%, rgba(74, 144, 226, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: moveBg 60s linear infinite;
}

@keyframes moveBg {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.auth-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow), 0 30px 60px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    animation: cardAppear 0.5s ease-out forwards;
    border: 1px solid var(--border-color);
}

/* Enhanced auth card style for light mode */
[data-theme="light"] .auth-card,
.auth-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 30px 60px rgba(0, 0, 0, 0.08);
}

@keyframes cardAppear {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow), 0 40px 80px rgba(0, 0, 0, 0.08);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #7cb9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 2px 5px rgba(74, 144, 226, 0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.auth-card h2 {
    color: var(--text-title-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--text-muted-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.input-group.input-focus {
    transform: translateX(5px);
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted-color);
    transition: color 0.3s ease;
}

.input-focus i {
    color: var(--primary-color);
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: opacity 0.3s ease;
}

.checkbox-label:hover {
    opacity: 0.8;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label input:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 12px;
    opacity: 1;
    transform: scale(1);
}

.checkbox-label.checked {
    color: var(--primary-color);
}

/* Enhanced checkbox styles for light mode */
[data-theme="light"] .checkbox-custom,
.checkbox-custom {
    border: 2px solid #c0c0c0;
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .checkbox-label input:checked + .checkbox-custom,
.checkbox-label input:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(74, 144, 226, 0.2);
}

/* Enhanced input styles for light mode */
[data-theme="light"] .input-group input,
.input-group input {
    border: 2px solid #c0c0c0;
    background-color: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .input-group input:focus,
.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.forgot-password {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.forgot-password:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.btn-block {
    width: 100%;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Login/Auth Button Styles */
.auth-form .btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    border: none;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #7cb9ff);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.auth-form .btn-primary:hover::before {
    opacity: 1;
}

.auth-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.5);
}

.auth-form .btn-primary i {
    transition: transform 0.3s ease;
}

.auth-form .btn-primary:hover i {
    transform: translateX(5px);
}

.btn-loading {
    pointer-events: none;
    position: relative;
}

.btn-loading span {
    opacity: 0;
}

.btn-loading i {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add a specific style for light mode to ensure button visibility */
[data-theme="light"] .auth-form .btn-primary,
.auth-form .btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Enhanced visibility with stronger shadow and border */
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .auth-form .btn-primary:hover,
.auth-form .btn-primary:hover {
    background-color: #3a7ec2;
    border-color: #3a7ec2;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.6);
    transform: translateY(-5px);
}

/* Improve visibility of input fields in light mode */
[data-theme="light"] .input-group input,
.input-group input {
    border: 2px solid #c0c0c0;
    background-color: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .input-group input:focus,
.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

/* Enhanced auth card visibility */
[data-theme="light"] .auth-card,
.auth-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* Add glow effect to login button for better visibility */
[data-theme="light"] .auth-form .btn-primary::after,
.auth-form .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shineEffect 3s infinite;
    z-index: 0;
}

@keyframes shineEffect {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* Checkbox enhancement for better visibility */
[data-theme="light"] .checkbox-custom,
.checkbox-custom {
    border: 2px solid #a0a0a0;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .auth-footer a,
.auth-footer a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

.auth-footer {
    margin: 1.5rem 0;
    color: var(--text-muted-color);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-strength.weak {
    color: #dc2626;
    background-color: rgba(220, 38, 38, 0.1);
}

.password-strength.medium {
    color: #d97706;
    background-color: rgba(217, 119, 6, 0.1);
}

.password-strength.strong {
    color: #16a34a;
    background-color: rgba(22, 163, 74, 0.1);
}

/* Password Requirements */
.password-requirements {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.req {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.req i {
    font-size: 0.7rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.req.valid {
    color: #16a34a;
}

.req.valid i {
    color: #16a34a;
}

/* Dark mode adjustments */
[data-theme="dark"] .input-group input {
    border-color: #404040;
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .checkbox-custom {
    border-color: #404040;
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .auth-subtitle,
[data-theme="dark"] .auth-footer,
[data-theme="dark"] .req {
    color: #a0aec0;
}

/* Dashboard Styles */
.dashboard-body {
    background-color: var(--background-color);
    padding-top: 60px;
}

.dashboard-container {
    display: flex;
    height: calc(100vh - 60px);
}

.sidebar {
    width: 280px;
    background: white;
    padding: 1.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.tags-filter h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-filter {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-filter.active {
    background: var(--primary-color);
    color: white;
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.note-editor {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.note-title {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid #e1e1e1;
    margin-bottom: 1rem;
}

.note-title:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.ql-container {
    height: 300px !important;
    margin-bottom: 1rem;
    overflow: auto;
}

.note-tags {
    margin: 1rem 0;
}

.tags-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 0.9rem;
}

.note-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.note-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 350px; /* Fixed height for consistent card appearance */
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Fix for filtered cards to maintain proper layout */
.note-card[style*="display: flex"] {
    display: flex !important;
    flex-direction: column;
}

.note-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent title from shrinking */
}

.note-content {
    color: #666;
    margin-bottom: 1rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    max-height: none; /* Let the flex layout control the height */
    min-height: 0; /* Important for overflow to work in flex items */
    position: relative;
    padding-right: 5px;
}

/* Custom scrollbar for note content */
.note-content::-webkit-scrollbar {
    width: 4px;
}

.note-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.note-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.note-content::-webkit-scrollbar-thumb:hover {
    background: #3a7ec2;
}

.note-card .note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0; /* Prevent tags from shrinking */
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e1e1e1;
    flex-shrink: 0; /* Prevent footer from shrinking */
    margin-top: auto; /* Push to the bottom of the card */
}

.note-date {
    color: #666;
    font-size: 0.9rem;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.user-name {
    color: var(--secondary-color);
    margin-right: 1rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .main-content {
        padding: 1rem;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(360deg);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .navbar {
    background: rgba(45, 45, 45, 0.95);
}

[data-theme="dark"] .auth-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .note-card,
[data-theme="dark"] .note-editor {
    background: var(--card-bg);
}

[data-theme="dark"] .auth-form input,
[data-theme="dark"] .search-box input,
[data-theme="dark"] .tags-input {
    background: #363636;
    border-color: #404040;
    color: var(--text-color);
}

[data-theme="dark"] .tag-filter {
    background: #363636;
    color: #e2e8f0;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Rate Limiting Styles */
.attempts-remaining {
    text-align: center;
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.rate-limit-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

/* Auto-save Status */
.auto-save-status {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.auto-save-status.success {
    background-color: #dcfce7;
    color: #16a34a;
    opacity: 1;
}

.auto-save-status.error {
    background-color: #fee2e2;
    color: #dc2626;
    opacity: 1;
}

/* Profile Styles */
.profile-container {
    padding: 2rem;
    max-width: 800px;
    margin: 60px auto 0;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

.profile-form {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e1e1;
}

.profile-form:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.profile-form h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.password-strength.weak {
    display: block;
    color: #dc2626;
    background-color: #fee2e2;
    border-left: 4px solid #dc2626;
}

.password-strength.medium {
    display: block;
    color: #d97706;
    background-color: #fef3c7;
    border-left: 4px solid #d97706;
}

.password-strength.strong {
    display: block;
    color: #16a34a;
    background-color: #dcfce7;
    border-left: 4px solid #16a34a;
}

/* Terms Checkbox */
.terms {
    margin: 1.5rem 0;
}

.terms .checkbox-label {
    font-size: 0.9rem;
    color: #666;
}

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

.terms-link:hover {
    text-decoration: underline;
}

/* Form Validation */
.input-group input:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

.input-group input:valid:not(:placeholder-shown) {
    border-color: #16a34a;
}

/* Dark mode adjustments for signup */
[data-theme="dark"] .terms .checkbox-label {
    color: #e2e8f0;
}

[data-theme="dark"] .password-strength.weak {
    background-color: rgba(220, 38, 38, 0.2);
}

[data-theme="dark"] .password-strength.medium {
    background-color: rgba(217, 119, 6, 0.2);
}

[data-theme="dark"] .password-strength.strong {
    background-color: rgba(22, 163, 74, 0.2);
}

/* Profile Button */
.profile-nav-btn {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-nav-btn:hover {
    transform: translateY(-2px);
    background-color: #3a7ec2; /* Darker shade of primary color */
}

.profile-nav-btn i {
    font-size: 1.3rem;
}

/* Profile Popup */
.profile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
}

.profile-popup.active {
    opacity: 1;
    visibility: visible;
}

.profile-popup .profile-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease;
    padding: 0;
    animation: popIn 0.4s ease forwards;
}

@keyframes popIn {
    from { transform: translateY(-20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e1e1;
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
}

.profile-header h2 {
    margin: 0;
    color: white;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.profile-info {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e1e1;
    background-color: var(--card-bg);
}

.profile-avatar {
    font-size: 4rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    background-color: rgba(74, 144, 226, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-details h3 {
    margin: 0 0 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.profile-details p {
    margin: 0.5rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.profile-details i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.profile-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e1e1e1;
    background-color: var(--card-bg);
}

.profile-section h3 {
    margin: 0 0 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.profile-section h3::before {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.profile-footer {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 0 0 15px 15px;
}

#passwordUpdateMessage {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

body.popup-open {
    overflow: hidden;
}

/* Dark mode adjustments */
[data-theme="dark"] .profile-header,
[data-theme="dark"] .profile-info,
[data-theme="dark"] .profile-section {
    border-color: #404040;
}

/* Quill Editor Adjustments */
.ql-editor {
    min-height: 100%;
    max-height: none;
    overflow: visible;
}

.note-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* Style for images in editor */
.ql-editor img {
    max-width: 200px !important;  /* Fixed maximum width */
    height: 200px !important;     /* Fixed height to make it square */
    object-fit: contain;          /* Maintain aspect ratio within square */
    display: inline-block;
    margin: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #f8f8f8;
}

/* Style for embedded images in editor */
.ql-snow .ql-editor img {
    max-width: 200px !important;
    height: 200px !important;
    object-fit: contain;
    display: inline-block;
    margin: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #f8f8f8;
}

/* Image resizing handle */
.ql-snow .ql-editor img.resizable {
    position: relative;
    resize: both;
    overflow: hidden;
}

/* Style for image toolbar */
.ql-tooltip {
    z-index: 1000;
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    animation: messageSlideDown 0.3s ease;
}

@keyframes messageSlideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.success-message {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.success-message::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

.error-message {
    background-color: rgba(198, 40, 40, 0.1);
    color: #c62828;
    border-left: 4px solid #c62828;
}

.error-message::before {
    content: '\f057';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

[data-theme="dark"] .success-message {
    background-color: rgba(46, 125, 50, 0.2);
}

[data-theme="dark"] .error-message {
    background-color: rgba(198, 40, 40, 0.2);
}

/* OTP Verification Styles */
.otp-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.otp-input {
    width: 100%;
    max-width: 200px;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 0.5rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.otp-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: scale(1.05);
}

.otp-input.has-value {
    color: var(--primary-color);
    font-weight: 600;
    animation: pulse-light 1s infinite;
}

@keyframes pulse-light {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(74, 144, 226, 0); }
}

.attempts-remaining {
    text-align: center;
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rate-limit-message {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-left: 4px solid #dc2626;
}

.verification-info {
    border-top: 1px solid #e1e1e1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    color: #666;
}

.verify-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.verify-info-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.btn.ready {
    animation: pulse-btn 1s infinite;
}

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Dark mode adjustments */
[data-theme="dark"] .attempts-remaining,
[data-theme="dark"] .verification-info,
[data-theme="dark"] .verify-info-item {
    color: #a0aec0;
}

[data-theme="dark"] .verification-info {
    border-color: #404040;
}

[data-theme="dark"] .rate-limit-message {
    background-color: rgba(220, 38, 38, 0.2);
}

/* Landing Page Styles */
.landing-page {
    overflow-x: hidden;
}

/* Landing Navbar */
.landing-navbar {
    padding: 1.5rem 5%;
    transition: all 0.3s ease;
    background: transparent;
}

.landing-navbar.scrolled {
    padding: 1rem 5%;
    background: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #7cb9ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.nav-brand:hover .logo-icon {
    transform: rotate(5deg);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.75rem;
    color: var(--text-title-color);
    font-weight: 800;
}

.nav-btn-login {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn-login:hover {
    background-color: rgba(74, 144, 226, 0.1);
    transform: translateY(-3px);
}

.nav-btn-signup {
    background: linear-gradient(135deg, var(--primary-color), #7cb9ff);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.nav-btn-signup:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--hero-gradient);
    color: white;
    padding: 120px 0 180px;
    overflow: hidden;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px;
    background-position: 0 0, 20px 20px;
    animation: moveParticles 20s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

.hero-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 3;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gradient-text {
    background-image: var(--gradient-text-light);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    transform: translateZ(30px);
    text-shadow: none;
}

.hero-section .gradient-text {
    background-image: var(--gradient-text-dark);
}

.gradient-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8) 0%, rgba(139, 92, 246, 0.4) 100%);
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transform: translateZ(50px);
}

.hero-section .gradient-text::after {
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    perspective: 1000px;
}

.btn-hero {
    position: relative;
    min-width: 180px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
}

.btn-hero span {
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-hero i {
    margin-left: 8px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 
                0 5px 10px rgba(0, 0, 0, 0.05), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.2),
                0 0 0 0 var(--btn-primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 
                0 10px 15px rgba(0, 0, 0, 0.1), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.3),
                0 0 15px var(--btn-primary-glow);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover span {
    transform: translateX(-3px);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--btn-border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.btn-secondary:hover {
    transform: translateY(-5px) rotateX(10deg);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.2),
                0 0 10px var(--btn-secondary-glow);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary i {
    margin-right: 8px;
    margin-left: 0;
}

.btn-secondary:hover span {
    transform: translateX(3px);
}

.btn-secondary:hover i {
    transform: translateX(-5px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    background: var(--hero-stats-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(10px);
}

.stat-item {
    text-align: center;
    padding: 0 25px;
    position: relative;
    z-index: 2;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.mockup-container {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1200px;
    transition: transform 0.5s ease;
    height: 500px;
}

.note-app-mockup {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: var(--3d-shadow);
    padding: 20px;
    width: 100%;
    transform: rotateY(-15deg) rotateX(10deg) translateZ(20px);
    transition: all 0.5s ease;
    border: var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform-style: preserve-3d;
}

.mockup-container:hover .note-app-mockup {
    transform: rotateY(-5deg) rotateX(5deg) translateZ(40px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.mockup-reflection {
    position: absolute;
    bottom: -50px;
    left: 5%;
    right: 5%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 70%);
    transform: rotateX(60deg) rotateY(-15deg) scaleY(0.2);
    filter: blur(5px);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.mockup-container:hover .mockup-reflection {
    transform: rotateX(60deg) rotateY(-5deg) scaleY(0.25);
    opacity: 0.7;
}

.mockup-header {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    display: flex;
    align-items: center;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.mockup-actions {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.mockup-action {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mockup-action.red { background-color: #ff5f57; }
.mockup-action.yellow { background-color: #ffbd2e; }
.mockup-action.green { background-color: #28c940; }

.mockup-title {
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: center;
    font-size: 14px;
}

.mockup-body {
    padding: 15px;
    height: calc(100% - 56px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0 0 12px 12px;
}

.mockup-note {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mockup-note:hover {
    transform: translateY(-5px) translateZ(30px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mockup-note.active {
    background: linear-gradient(to right, white, #f0f7ff);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--primary-color);
}

.note-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.note-tag {
    font-size: 11px;
    padding: 2px 8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-weight: 500;
}

.note-content {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.note-date {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    animation: float3D 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform-style: preserve-3d;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 5;
}

@keyframes float3D {
    0% {
        transform: translateZ(0px) translateY(0px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: translateZ(20px) translateY(-20px);
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: translateZ(0px) translateY(0px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

.element-1 { top: -20px; left: -10px; animation-delay: 0s; }
.element-2 { top: 50%; right: -20px; animation-delay: -1s; }
.element-3 { bottom: -10px; left: 20%; animation-delay: -2s; }
.element-4 { top: 30%; left: -30px; animation-delay: -3s; }
.element-5 { bottom: 30%; right: -10px; animation-delay: -4s; }
.element-6 { top: 10%; right: 20%; animation-delay: -2.5s; }
.element-7 { bottom: 0; right: 35%; animation-delay: -3.5s; }

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

@keyframes moveParticles {
    0% {
        background-position: 0 0, 20px 20px;
    }
    100% {
        background-position: 40px 40px, 60px 60px;
    }
}

/* Enhanced login button style for better visibility */
[data-theme="light"] .auth-form .btn-primary,
.auth-form .btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #3a7ec2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    border: 2px solid #3a7ec2;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    z-index: 1;
}

[data-theme="light"] .auth-form .btn-primary::before,
.auth-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a7ec2 0%, #306ab0 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .auth-form .btn-primary:hover,
.auth-form .btn-primary:hover {
    background-color: #3a7ec2;
    border-color: #306ab0;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.6);
    transform: translateY(-5px);
}

[data-theme="light"] .auth-form .btn-primary:hover::before,
.auth-form .btn-primary:hover::before {
    opacity: 1;
}

/* Enhanced remember me text for better visibility */
[data-theme="light"] .checkbox-text,
.checkbox-text {
    color: var(--text-color);
    font-weight: 500;
}

/* Enhanced auth links */
[data-theme="light"] .forgot-password,
.forgot-password {
    color: #4a90e2;
    font-weight: 600;
    text-decoration: underline;
} 