/* Login Landing – professional, compact, muted corporate style – full viewport */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Ensure landing page covers full display (no gaps) – override admin.css / Bootstrap */
html.landing-html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

body.login-landing-page {
    width: 100% !important;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

:root {
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hero: #1e293b;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-invert: #ffffff;

    --border-color: #e2e8f0;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.08);

    --hover-border: #3b82f6;
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.login-landing-page.dark {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-hero: #0f172a;

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-invert: #f1f5f9;

    --border-color: #334155;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.08);

    --hover-border: #60a5fa;
    --hover-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.login-landing-page {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    transition: background 0.25s, color 0.25s;
    font-size: 15px;
}

.landing-center-wrap {
    width: 95%;
    max-width: 1200px;
    text-align: center;
    padding: 1rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    box-sizing: border-box;
}

/* Hero – compact, no gradient */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    margin: 0 -0.75rem 2rem;
    border-radius: 12px;
    background: var(--bg-hero);
    color: var(--text-invert);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.landing-hero-content {
    animation: landingFadeIn 0.5s ease-out;
}

@keyframes landingFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-invert);
    font-weight: 700;
}

.landing-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.landing-tagline {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
    color: #ffffff;
    font-weight: 400;
}

/* Dark mode toggle */
.landing-dark-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.landing-dark-toggle:hover {
    color: var(--text-main);
    transform: scale(1.05);
    border-color: var(--hover-border);
}

[dir="rtl"] .landing-dark-toggle {
    right: auto;
    left: 24px;
}

/* Cards section */
.landing-cards-section {
    width: 100%;
    padding: 0;
    background: transparent;
}

.landing-cards-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* Cards */
.landing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-landing-page .landing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-card:hover {
    border-color: var(--accent);
    box-shadow: var(--hover-shadow);
    transform: translateY(-4px);
    background: var(--accent-soft);
}

.landing-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 12px;
    color: var(--accent);
    font-size: 1.5rem;
    transition: all 0.2s;
}

.landing-card:hover .landing-card-icon {
    background: var(--accent);
    color: #ffffff;
}

.landing-card-text h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-main);
}

.landing-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.landing-card-arrow {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--accent);
    opacity: 0;
    transition: all 0.2s;
    transform: translateX(-10px);
}

.landing-card:hover .landing-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.landing-footer {
    padding: 2rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: auto;
}

.landing-footer-sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .landing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }
    .landing-hero h1 {
        font-size: 1.75rem;
    }
}
