:root {
    --li-blue: #0a66c2;
    --li-dark-blue: #004182;
    --li-bg: #f3f2ef;
    --li-text: rgba(0, 0, 0, 0.9);
    --li-subtext: rgba(0, 0, 0, 0.6);
    --li-border: #ebebeb;
    --li-card-bg: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
    color: var(--li-text);
    background-color: var(--li-bg);
}
.navbar {
    background-color: #ffffff;
    height: 64px;
    border-bottom: 1px solid var(--li-border);
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo-placeholder {
    width: 34px;
    height: 34px;
    background-color: var(--li-blue);
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.logo-placeholder::after {
    content: "in";
    color: white;
    font-weight: 700;
    font-size: 22px;
    font-family: "Source Sans Pro", "Inter", -apple-system, system-ui, sans-serif;
    letter-spacing: -0.8px;
    margin-bottom: 2px;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 80px 20px 40px;
    box-sizing: border-box;
}

.security-card {
    background: var(--li-card-bg);
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 4px rgba(0,0,0,0.3);
    padding: 32px;
    box-sizing: border-box;
    text-align: center;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--li-text);
}

.card-subtitle {
    font-size: 16px;
    color: var(--li-subtext);
    margin: 0 0 24px 0;
    line-height: 1.4;
}


/* Captcha Styling */
.captcha-wrapper {
    position: relative;
    padding-top: 8px;
}

#loading-spinner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--li-blue);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.puzzle-container {
    position: relative;
    width: 300px;
    height: 150px;
    margin: 0 auto 24px auto;
    background: #e4e6e9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

#bg-canvas { position: absolute; top:0; left:0; z-index: 1; }
#piece-canvas { position: absolute; top:0; left:0; z-index: 2; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }

.slider-container {
    position: relative;
    width: 300px;
    margin: 0 auto;
}

.slider-track {
    background: #f3f2ef;
    height: 48px;
    position: relative;
    border: 1px solid #8a8886;
    border-radius: 24px;
}

.slider-fill {
    background: rgba(10, 102, 194, 0.1);
    height: 48px;
    width: 0;
    position: absolute;
    top: -1px; left: -1px;
    z-index: 1;
    border-radius: 24px 0 0 24px;
    border: 1px solid var(--li-blue);
    opacity: 0;
}

.slider-handle {
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: var(--li-blue);
    border: 1px solid var(--li-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: absolute;
    top: -1px; left: -1px;
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    transition: background 0.2s, color 0.2s;
    border-radius: 50%;
}

.slider-handle:hover {
    background: #f3f9ff;
}

.slider-handle.active {
    background: var(--li-blue);
    color: #ffffff;
    cursor: grabbing;
}

.error-popup {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #df3333;
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.error-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #df3333 transparent transparent transparent;
}

.error-popup.visible {
    opacity: 1;
}

.shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.footer {
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--li-subtext);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-content a {
    color: var(--li-subtext);
    text-decoration: none;
    font-weight: 600;
}

.footer-content a:hover {
    text-decoration: underline;
    color: var(--li-blue);
}

.hidden {
    display: none !important;
}

