:root {
    --theme-modal-bg: rgba(44, 44, 46, 0.85);
    --theme-panel-border: rgba(255, 255, 255, 0.15);
    --theme-text-main: #f5f5f7;
    --theme-input-bg: rgba(28, 28, 30, 0.9);
    --theme-input-border: rgba(255, 255, 255, 0.12);
    --primary-accent: #f5f5f7;
    --primary-text: #1c1c1e;
    --apple-red: #ff453a;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
}

.auth-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 999999;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.silk-bg {
    position: absolute;
    inset: 0;
    background-color: #000000;
    background-image: 
        radial-gradient(ellipse at 20% 0%, #2c2c35 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, #1a1a24 0%, transparent 50%),
        linear-gradient(105deg, transparent 20%, rgba(45, 45, 55, 0.3) 25%, transparent 30%);
    background-size: 200% 200%;
    animation: silkWave 14s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes silkWave {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.ghost-crm-bg {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 40px;
    padding: 60px;
    z-index: 2;
    pointer-events: none;
    justify-content: center;
    align-items: stretch;
}

.ghost-kanban {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
}

.ghost-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: rgba(28, 28, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
}

.ghost-island {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.clock { height: 160px; }
.notifications { flex: 1; min-height: 400px; }
.profile { height: 100px; }

.ghost-item, .ghost-widget {
    background: rgba(44, 44, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ghost-item { height: 120px; }

.auth-modal {
    background: var(--theme-modal-bg);
    padding: 48px;
    border-radius: 32px;
    width: 320px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border: 1px solid var(--theme-panel-border);
    text-align: center;
    color: var(--theme-text-main);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: rgba(28, 28, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--theme-text-main);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-text-main);
    margin-bottom: 32px;
    letter-spacing: -0.5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.auth-input {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--theme-input-border);
    background: var(--theme-input-bg);
    margin-bottom: 16px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: 0.3s;
    font-weight: 500;
    color: var(--theme-text-main);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(44, 44, 46, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-accent);
    color: var(--primary-text);
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 16px;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
    background: #ffffff;
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-error {
    color: var(--apple-red);
    font-size: 12px;
    font-weight: 600;
    margin-top: 16px;
    min-height: 16px;
}