@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.font-sans {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Custom Scrollbar for Webkit */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Markdown Content Styling - "Premium Document" Theme */
.markdown-body {
    color: #334155;
    /* Slate 700 */
    line-height: 1.8;
    font-size: 1.05rem;
    /* slightly larger for readability */
}

.markdown-body h1 {
    font-family: 'Outfit', sans-serif;
    /* Distinct heading font */
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2rem;
    color: #0f172a;
    /* Slate 900 */
    letter-spacing: -0.025em;
    line-height: 1.2;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.markdown-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #1e293b;
    /* Slate 800 */
    letter-spacing: -0.02em;
}

.markdown-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #334155;
    letter-spacing: -0.01em;
}

.markdown-body p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.markdown-body strong {
    font-weight: 600;
    color: #0f172a;
}

.markdown-body em {
    font-style: italic;
    color: #475569;
}

.markdown-body ul,
.markdown-body ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.markdown-body ul {
    list-style-type: disc;
}

.markdown-body ol {
    list-style-type: decimal;
}

.markdown-body li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.markdown-body li::marker {
    color: #94a3b8;
}

.markdown-body blockquote {
    border-left: 4px solid #6366f1;
    /* Indigo 500 */
    background-color: #f8fafc;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: #475569;
    border-radius: 0 0.5rem 0.5rem 0;
}

.markdown-body code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    color: #0f172a;
}

.markdown-body pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    font-size: 0.9em;
    line-height: 1.5;
}

.markdown-body pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    border-radius: 0;
}

.markdown-body hr {
    height: 1px;
    background-color: #e2e8f0;
    border: none;
    margin: 3rem 0;
}

.markdown-body table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.markdown-body th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
}

.markdown-body td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

/* Animations without Tailwind */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.markdown-body>* {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ... existing code ... */

/* 
   -----------------------------------------------------------------------------
   PREMIUM AUTH PAGES (Login / Register) - "Aero / Glassmorphism" Theme
   -----------------------------------------------------------------------------
*/

.auth-body {
    background: #0f172a;
    /* Fallback */
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Decorative background blobs */
.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.auth-blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #4f46e5;
    animation: blobFloat 10s infinite alternate;
}

.auth-blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #ec4899;
    animation: blobFloat 12s infinite alternate-reverse;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    color: white;
}

.auth-logo i {
    width: 32px;
    height: 32px;
    color: #818cf8;
    /* Indigo 400 */
}

.auth-logo span {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #94a3b8;
    /* Slate 400 */
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.auth-input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.auth-input-group label {
    display: block;
    color: #cbd5e1;
    /* Slate 300 */
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #818cf8;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.auth-input::placeholder {
    color: #475569;
}

.auth-button {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.auth-link {
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* Animations for form elements */
.auth-slide-up {
    opacity: 0;
    transform: translateY(15px);
    animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .markdown-body {
        font-size: 0.95rem;
        /* Slightly smaller body text */
        line-height: 1.6;
    }

    .markdown-body h1 {
        font-size: 1.75rem;
        /* Smaller H1 */
        margin-bottom: 1.5rem;
    }

    .markdown-body h2 {
        font-size: 1.4rem;
        /* Smaller H2 */
        margin-top: 2rem;
    }

    .markdown-body h3 {
        font-size: 1.15rem;
        /* Smaller H3 */
        margin-top: 1.5rem;
    }

    .markdown-body pre {
        padding: 1rem;
        /* Less padding in code blocks */
        font-size: 0.8em;
    }
}

/* 
   -----------------------------------------------------------------------------
   SPLIT LOGIN LAYOUT
   -----------------------------------------------------------------------------
*/

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #0f172a;
}

.auth-image-section {
    display: none;
    position: relative;
    flex: 1;
    background-image: url('../img/bglogin.png');
    background-size: cover;
    background-position: center;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
}

.auth-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.auth-image-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 480px;
}

.auth-image-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.auth-image-content p {
    font-size: 1.25rem;
    color: #e2e8f0;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.auth-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
}

/* Desktop styles */
@media (min-width: 1024px) {
    .auth-image-section {
        display: flex;
    }
}