/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3563E9;
    --primary-light: #5B81F0;
    --primary-dark: #2851D1;
    --secondary: #101828;
    --accent: #4ADE80;
    --accent-dark: #2EBD67;
    --purple: #8B5CF6;
    --pink: #EC4899;
    --orange: #F97316;
    --teal: #14B8A6;
    --white: #ffffff;
    --light: #F9FAFB;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-2xl: 32px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
    position: relative;
}

h1, h2, h3, h4 {
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    color: var(--secondary);
}

h2 {
    font-size: 2.25rem;
    color: var(--secondary);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary);
}

p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--gray-600);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

.text-center {
    text-align: center;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 17px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.logo img {
    max-height: auto;
    width: 180px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    justify-content: center;
}

.main-nav ul li a {
    color: var(--gray-700);
    font-weight: 600;
    position: relative;
    padding: 8px 0;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
    transition: var(--transition);
    border-radius: 2px;
}

.main-nav ul li a:hover {
    color: var(--primary);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.auth-nav {
    display: flex;
    gap: 12px;
}

.auth-nav .btn {
    padding: 8px 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(53, 99, 233, 0.1);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    padding: 100px 40px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(229, 231, 235, 0.5);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.mobile-nav-main {
    margin-bottom: 40px;
}

.mobile-nav-main ul {
    list-style: none;
}

.mobile-nav-main ul li {
    margin-bottom: 20px;
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: calc(0.05s * var(--i));
}

.mobile-nav.active .mobile-nav-main ul li {
    transform: translateX(0);
    opacity: 1;
}

.mobile-nav-main ul li a {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-nav-main ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav-main ul li a:hover {
    color: var(--primary);
    transform: translateX(10px);
}

.mobile-nav-main ul li a:hover::before {
    opacity: 1;
}

.mobile-nav-auth {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: 0.3s;
}

.mobile-nav.active .mobile-nav-auth {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-auth .btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
}

.mobile-nav-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(229, 231, 235, 0) 0%, rgba(229, 231, 235, 0.8) 50%, rgba(229, 231, 235, 0) 100%);
    margin: 20px 0;
}

.mobile-nav-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: 0.4s;
}

.mobile-nav.active .mobile-nav-social {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(229, 231, 235, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.mobile-nav-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    background-color: var(--white);
    color: var(--gray-700);
    padding: 80px 0 30px;
    position: relative;
}

.footer-container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
}

.footer-about {
    margin-bottom: 24px;
    color: var(--gray-600);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: var(--transition);
}

.footer-social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-600);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: var(--primary);
}

.footer-ssl p {
    margin-bottom: 20px;
    color: var(--gray-600);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
}

/* Auth Pages Specific Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: auto; /* Account for fixed header */
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.auth-subtitle {
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.6;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--gray-50);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(53, 99, 233, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 8px;
    display: none;
}

.auth-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 24px;
}

.auth-button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(53, 99, 233, 0.3);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-links {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--purple);
}

.success-message, .server-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.info-message {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert Messages */
.alert-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

.alert-message i {
    font-size: 18px;
}

.alert-message.success {
    background-color: #e6f7ee;
    color: #0a7b4c;
    border: 1px solid #a3e6c5;
}

.alert-message.error {
    background-color: #fde8e8;
    color: #c53030;
    border: 1px solid #f8b4b4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .nav-container {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 40px 0;
    }
    
    .auth-card {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-main {
        padding: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .logo img {
        max-height: auto;
        width: 160px;
    }
    
    .auth-card {
        padding: 24px 20px;
    }
    
    .auth-title {
        font-size: 1.4rem;
    }
    
    .form-input {
        padding: 14px;
        font-size: 0.95rem;
    }
    
    .auth-button {
        padding: 14px;
    }
    
    .auth-main {
        padding: 16px;
    }
}
