/* Public pages — landing & authentication */

/* ========== Landing ========== */
.landing {
    min-height: 100vh;
    color: #fff;
    background: #070b14;
    overflow-x: hidden;
}

.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 10% -10%, rgba(99, 102, 241, 0.45), transparent 55%),
        radial-gradient(ellipse 70% 50% at 95% 15%, rgba(20, 184, 166, 0.28), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(79, 70, 229, 0.22), transparent 55%),
        linear-gradient(180deg, #070b14 0%, #0f172a 45%, #111827 100%);
}

.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 18s ease-in-out infinite;
}

.landing-orb--1 {
    width: 420px;
    height: 420px;
    background: rgba(99, 102, 241, 0.35);
    top: -8%;
    right: 8%;
}

.landing-orb--2 {
    width: 320px;
    height: 320px;
    background: rgba(20, 184, 166, 0.25);
    bottom: 12%;
    left: -5%;
    animation-delay: -6s;
}

.landing-orb--3 {
    width: 240px;
    height: 240px;
    background: rgba(139, 92, 246, 0.2);
    top: 42%;
    left: 38%;
    animation-delay: -12s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.05); }
    66% { transform: translate(-16px, 12px) scale(0.95); }
}

.landing > *:not(.landing-bg) {
    position: relative;
    z-index: 1;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem;
    max-width: 1180px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(7, 11, 20, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.landing-logo:hover {
    color: #fff;
    opacity: 0.92;
}

.landing-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5b5ef4, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(91, 94, 244, 0.35);
}

.landing-logo-img {
    height: 34px;
    max-width: 130px;
    object-fit: contain;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-nav-link {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.landing-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.landing-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.landing-nav-btn--ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.landing-nav-btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.landing-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
}

.landing-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.landing-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 1.15rem;
    letter-spacing: -0.03em;
}

.landing-hero h1 span {
    background: linear-gradient(135deg, #a5b4fc 0%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-lead {
    font-size: 1.125rem;
    color: #94a3b8;
    margin: 0 0 2rem;
    line-height: 1.75;
    max-width: 34rem;
}

.landing-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.landing-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.landing-stat span {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.landing-portals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem 1.5rem 1.5rem 1.35rem;
    color: #fff;
    text-decoration: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, background 0.25s, box-shadow 0.25s;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.portal-card.admin::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), transparent 60%);
}

.portal-card.employee::before {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), transparent 60%);
}

.portal-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.portal-card:hover::before {
    opacity: 1;
}

.portal-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-card.admin .portal-card-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.portal-card.employee .portal-card-icon {
    background: rgba(20, 184, 166, 0.2);
    color: #5eead4;
}

.portal-card-icon svg {
    width: 24px;
    height: 24px;
}

.portal-card-body h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.portal-card-body p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

.portal-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: transform 0.25s, background 0.25s;
}

.portal-card:hover .portal-card-arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.14);
}

.landing-features-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
}

.landing-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #818cf8;
    margin: 0 0 0.5rem;
}

.landing-features-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2rem;
    letter-spacing: -0.02em;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
}

.landing-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.landing-footer a {
    color: #94a3b8;
}

.landing-footer a:hover {
    color: #e2e8f0;
}

.landing-footer-links {
    display: flex;
    gap: 1.25rem;
}

/* ========== Auth split layout ========== */
.auth-page {
    min-height: 100vh;
    padding: 0;
    background: #f8fafc;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    color: #fff;
    overflow: hidden;
}

.auth-panel--admin {
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}

.auth-panel--employee {
    background: linear-gradient(160deg, #0f172a 0%, #134e4a 50%, #0f766e 100%);
}

.auth-panel-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 255, 255, 0.06), transparent 50%);
    pointer-events: none;
}

.auth-panel-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 420px;
}

.auth-panel-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 3rem;
}

.auth-panel-brand:hover {
    color: #fff;
    opacity: 0.9;
}

.auth-panel-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.auth-panel-logo {
    max-height: 42px;
    max-width: 150px;
    object-fit: contain;
}

.auth-panel-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.auth-panel-hero {
    flex: 1;
}

.auth-panel-hero h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.auth-panel-hero p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.auth-panel-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-panel-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.auth-panel-points svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-panel-back {
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-panel-back:hover {
    color: #fff;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.06), transparent 50%),
        #f8fafc;
}

.auth-layout .auth-card {
    width: 100%;
    max-width: 400px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-card-header {
    margin-bottom: 1.75rem;
}

.auth-card-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.auth-card-header .subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.925rem;
}

.auth-layout .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.auth-layout .form-group input {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-layout .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-layout .btn-lg {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.auth-layout .btn-google {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer-links {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.8;
}

.auth-footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-footer-links a:hover {
    color: var(--primary);
}

.auth-layout .alert {
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2rem;
    }

    .landing-features-grid {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .auth-panel-hero {
        flex: none;
    }

    .auth-panel-points {
        display: none;
    }

    .auth-panel-back {
        margin-top: 1.5rem;
    }

    .auth-main {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .landing-nav {
        padding: 1rem 1.25rem;
    }

    .landing-nav-link {
        display: none;
    }

    .landing-hero,
    .landing-features-section,
    .landing-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .landing-hero-stats {
        gap: 1.25rem;
    }

    .landing-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-orb {
        animation: none;
    }
}
