/**
 * Login sheet 样式 · 配合 scripts/login_sheet.js 使用
 * 风格对齐 onboarding.css / report 页（深紫主色，圆角 16-20px，柔和阴影）。
 */

.ls-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: ls-fade-in 180ms ease-out;
}

@media (min-width: 480px) {
    .ls-overlay {
        align-items: center;
    }
}

@keyframes ls-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ls-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 24px 22px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.12);
    animation: ls-slide-up 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111827;
}

@media (min-width: 480px) {
    .ls-sheet {
        border-radius: 20px;
        padding: 28px 24px 22px;
    }
}

@keyframes ls-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ls-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}

.ls-close:hover { background: #e5e7eb; color: #111827; }

.ls-header {
    margin-bottom: 16px;
    padding-right: 36px;
}

.ls-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.ls-subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.ls-invite-callout {
    background: linear-gradient(135deg, #f5f3ff 0%, #fef3f2 100%);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 14px 14px;
    margin-bottom: 16px;
}

.ls-invite-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b21a8;
    margin-bottom: 6px;
}

.ls-invite-body {
    font-size: 13px;
    color: #4c1d95;
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: break-all;
}

.ls-invite-copy {
    font-size: 12px;
    font-weight: 500;
    color: #6b21a8;
    background: #ffffff;
    border: 1px solid #c4b5fd;
    border-radius: 999px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 120ms ease;
}

.ls-invite-copy:hover { background: #ede9fe; }

.ls-form { display: flex; flex-direction: column; gap: 12px; }

.ls-field { display: flex; flex-direction: column; gap: 6px; }

.ls-label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.2px;
}

.ls-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color 120ms ease, background 120ms ease;
}

.ls-field input:focus {
    border-color: #8b5cf6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.ls-error {
    font-size: 12px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 10px;
    line-height: 1.4;
}

.ls-submit {
    margin-top: 4px;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 12px;
    background: #0b0b0b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 120ms ease, transform 80ms ease;
}

.ls-submit:hover:not(:disabled) { background: #1f1f1f; }
.ls-submit:active:not(:disabled) { transform: scale(0.99); }

.ls-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 启动页右上角"登录"按钮 */
.splash-topbar-login {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top));
    right: 16px;
    z-index: 11;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #6b21a8;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Noto Sans SC', -apple-system, sans-serif;
    transition: all 120ms ease;
    box-shadow: 0 1px 3px rgba(139, 92, 246, 0.12);
}

.splash-topbar-login:hover {
    background: #ffffff;
    border-color: #8b5cf6;
    color: #5b21b6;
}

.splash-topbar-login:active { transform: scale(0.97); }
